Skip to content

Commit

Permalink
massive GUI performance improvement, STILL NOT RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
PJDude committed Jan 15, 2024
1 parent 828a41b commit a96a05e
Show file tree
Hide file tree
Showing 2 changed files with 597 additions and 341 deletions.
11 changes: 10 additions & 1 deletion src/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def __init__(self,parent,icon,bg_color,pre_show=None,post_close=None,min_width=1
self.text.configure(yscrollcommand=self.text_vsb_set)

############################################
self.text.tag_configure('RED', foreground='red')
self.text.tag_configure('GRAY', foreground='gray')

self.text.tag_configure('found', background='yellow')
self.text.tag_configure('found_sel', background='orange')

Expand Down Expand Up @@ -488,7 +491,13 @@ def show(self,title='',message='',uplabel_text=''):
self_text = self.text
self_text.configure(state='normal')
self_text.delete('1.0', 'end')
self_text.insert('end',message)

for line in message.split('\n'):
line_splitted=line.split('|')
tag=line_splitted[1] if len(line_splitted)>1 else None

self.text.insert('end', line_splitted[0] + "\n", tag)

self_text.configure(state='disabled')

self.copy_button.configure(state='normal')
Expand Down
Loading

0 comments on commit a96a05e

Please sign in to comment.