We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf9edde commit e2c744bCopy full SHA for e2c744b
1 file changed
NSE_Option_Chain_Analyzer.py
@@ -1381,8 +1381,10 @@ def main(self) -> None:
1381
time_difference = current_time.minute - self.previous_time.minute + \
1382
(current_time.second - self.previous_time.second) / 60
1383
if time_difference >= self.time_difference_factor and self.warn_late_update:
1384
- messagebox.showinfo(title="Late Update", message=f"The data from the server was last updated about "
1385
- f"{int(time_difference)} minutes ago.")
+ self.root.after(2000,
+ (lambda title="Late Update", message=f"The data from the server was last updated "
1386
+ f"about {int(time_difference)} minutes ago.":
1387
+ messagebox.showinfo(title=title, message=message)))
1388
self.previous_time = current_time
1389
else:
1390
self.root.after((self.seconds * 1000), self.main)
0 commit comments