You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messagebox.showerror("Error in mainloop", f"Couldn't load iconbitmap for this window due to this error\n{errorLoadingIconBitmap}\n\nPress OK to continue")
53
+
pass
54
+
55
+
# defining a function to insert text into the scrolledtext widget.
56
+
definsertInformation():
57
+
"""
58
+
A function for inserting text into the scrolledtext widget that will show information to the user.
59
+
"""
60
+
self.moreinfo_widget.configure(state='normal')
61
+
self.moreinfo_widget.delete(1.0, END)
62
+
self.moreinfo_widget.insert(END, f"""You have been looking at the computer's screen for {self.sessionMinutes} minute(s)
63
+
continuously, it is strongly recommended that you take a break for 5
64
+
minutes or more to save your eyesight and help you get better sleep at night.
65
+
66
+
Please take a break for 5 minutes or more then press the 'OK' button
67
+
below to close this window and notify you again after {self.sessionMinutes} minute(s) from the
68
+
pressing time.
69
+
""")
70
+
self.moreinfo_widget.configure(state='disabled')
71
+
returnNone
72
+
73
+
74
+
# defining the function for the OK button
75
+
defokBtn_Function():
76
+
"""
77
+
OK btn function
78
+
"""
79
+
self.destroy()
80
+
returnNone
81
+
# declaring widgets in this window.
82
+
self.lbl0=Label(self, bg=DEFAULT_COLOR, foreground='white', font=("Arial Bold",14), text="You need to take a break.")
0 commit comments