Skip to content

Commit

Permalink
modified: ufade_gui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
prosch88 committed Jul 25, 2024
1 parent ade049d commit f0101d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ufade_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ def chat_shotloop(self, dvt):
self.imglabel = ctk.CTkLabel(self.shotframe, image=self.placeholder_image, text=" ", width=240, height=426, font=self.stfont, anchor="w", justify="left")
self.imglabel.pack()
self.text = ctk.CTkLabel(self.textframe, text="Open the chat application and the chat\nyou want to capture, enter the name of\nthe chosen chat in the given fields", width=300, height=60, font=self.stfont, anchor="w", justify="left")
self.text.pack(anchor="w", pady=10)
self.text.pack(anchor="w")
self.appbox = ctk.CTkEntry(self.textframe, width=140, height=20, corner_radius=0, placeholder_text="name of the app")
self.appbox.pack(pady=10, ipadx=0, anchor="w")
self.chatbox = ctk.CTkEntry(self.textframe, width=140, height=20, corner_radius=0, placeholder_text="name of the chat")
Expand All @@ -1839,7 +1839,7 @@ def chat_shotloop(self, dvt):
self.abortbutton = ctk.CTkButton(self.textframe, text="Back", font=self.stfont, command=lambda: self.switch_menu("DevMenu"))
self.abortbutton.pack(pady=10, ipadx=0, anchor="w")
self.namefield = ctk.CTkLabel(self.textframe, text=" ", width=300, height=60, font=self.stfont, anchor="w", justify="left")
self.namefield.pack(anchor="w", pady=10)
self.namefield.pack(anchor="w", pady=5)


def chatshotthread(self, dvt, app_name, chat_name, direction, imglabel, namefield, text):
Expand All @@ -1851,11 +1851,13 @@ def chatshotthread(self, dvt, app_name, chat_name, direction, imglabel, namefiel
self.stop_event.clear()
self.doshot = threading.Thread(target=lambda: self.shotloop(dvt, app_name, chat_name, ab_count, sc_count, direction, imglabel, namefield, text, first=True))
self.doshot.start()


def breakshotloop(self):
self.stop_event.set()

def shotloop(self, dvt, app_name, chat_name, ab_count, sc_count, direction, imglabel, namefield, text, png=None, first=False):
AccessibilityAudit(lockdown).set_show_visuals(False)
name = chat_name + "_" + str(datetime.now().strftime("%m_%d_%Y_%H_%M_%S"))
filename = name + ".png"
hashname = name + ".txt"
Expand Down Expand Up @@ -1937,7 +1939,7 @@ def shotloop(self, dvt, app_name, chat_name, ab_count, sc_count, direction, imgl
self.downbutton.configure(state="enabled")
self.abortbutton.configure(state="enabled")
AccessibilityAudit(lockdown).set_show_visuals(False)
raise KeyboardInterrupt
raise SystemExit
return("interrupt")


Expand Down

0 comments on commit f0101d4

Please sign in to comment.