format fixes
This commit is contained in:
parent
dcda647e90
commit
dc6f8cb094
14
wirepy.py
14
wirepy.py
@ -57,7 +57,9 @@ def signal_handler(signum, frame):
|
||||
|
||||
if signum in (signal.SIGINT, signal.SIGTERM):
|
||||
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)
|
||||
Path.unlink("/tmp/.loguser")
|
||||
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.resizable(width=False, height=False)
|
||||
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.rowconfigure(0, weight=1)
|
||||
|
||||
@ -115,8 +118,9 @@ class Wirepy(tk.Tk):
|
||||
|
||||
class FrameWidgets(ttk.Frame):
|
||||
"""
|
||||
ttk frame class for better structure
|
||||
ttk frame class for better structure
|
||||
"""
|
||||
|
||||
def __init__(self, container, **kwargs):
|
||||
super().__init__(container, **kwargs)
|
||||
|
||||
@ -1576,7 +1580,7 @@ class MyToolTip(tk.Toplevel):
|
||||
self.message_label.pack()
|
||||
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user