format fixes
This commit is contained in:
parent
dcda647e90
commit
dc6f8cb094
12
wirepy.py
12
wirepy.py
@ -57,7 +57,9 @@ def signal_handler(signum, frame):
|
|||||||
|
|
||||||
if signum in (signal.SIGINT, signal.SIGTERM):
|
if signum in (signal.SIGINT, signal.SIGTERM):
|
||||||
exit_code = 1
|
exit_code = 1
|
||||||
print(f"\nSignal {signame} {(signum)} received. => Aborting with exit code {exit_code}.")
|
print(
|
||||||
|
f"\nSignal {signame} {(signum)} received. => Aborting with exit code {exit_code}."
|
||||||
|
)
|
||||||
shutil.rmtree(dirname)
|
shutil.rmtree(dirname)
|
||||||
Path.unlink("/tmp/.loguser")
|
Path.unlink("/tmp/.loguser")
|
||||||
print("Breakdown by user...")
|
print("Breakdown by user...")
|
||||||
@ -89,8 +91,9 @@ class Wirepy(tk.Tk):
|
|||||||
self.monitor_center_y = int(self.winfo_screenheight() / 2 - (self.y_height / 2))
|
self.monitor_center_y = int(self.winfo_screenheight() / 2 - (self.y_height / 2))
|
||||||
self.resizable(width=False, height=False)
|
self.resizable(width=False, height=False)
|
||||||
self.title("Wire-Py")
|
self.title("Wire-Py")
|
||||||
self.geometry(f"{self.x_width}x{self.y_height}+{self.monitor_center_x}+{self.monitor_center_y}")
|
self.geometry(
|
||||||
|
f"{self.x_width}x{self.y_height}+{self.monitor_center_x}+{self.monitor_center_y}"
|
||||||
|
)
|
||||||
self.columnconfigure(0, weight=1)
|
self.columnconfigure(0, weight=1)
|
||||||
self.rowconfigure(0, weight=1)
|
self.rowconfigure(0, weight=1)
|
||||||
|
|
||||||
@ -117,6 +120,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
"""
|
"""
|
||||||
ttk frame class for better structure
|
ttk frame class for better structure
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, container, **kwargs):
|
def __init__(self, container, **kwargs):
|
||||||
super().__init__(container, **kwargs)
|
super().__init__(container, **kwargs)
|
||||||
|
|
||||||
@ -1576,7 +1580,7 @@ class MyToolTip(tk.Toplevel):
|
|||||||
self.message_label.pack()
|
self.message_label.pack()
|
||||||
|
|
||||||
self.geometry(
|
self.geometry(
|
||||||
"+%d+%d" % (self.x_pos + self.TIP_X_OFFSET, self.y_pos + self.TIP_X_OFFSET)
|
f"+{self.x_pos + self.TIP_X_OFFSET}+{self.y_pos + self.TIP_X_OFFSET}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.auto_clear:
|
if self.auto_clear:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user