Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions vleappGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,15 @@ def filter_modules(*args):

for artifact_name, module_infos in mlist.items():
if module_matches_filter(module_infos, filter_term):
cb = tk.Checkbutton(mlist_text, name=f'mcb_{artifact_name}',
text=f'{module_infos[0]} [{module_infos[1]} | {module_infos[2]}.py]',
variable=module_infos[-1], onvalue=True, offvalue=False, command=get_selected_modules)
cb.config(background=theme_bgcolor, fg=theme_fgcolor, selectcolor=theme_inputcolor,
highlightthickness=0, activebackground=theme_bgcolor, activeforeground=theme_fgcolor)
cb = ttk.Checkbutton(
mlist_text,
name=f'mcb_{artifact_name}',
text=f'{module_infos[0]} [{module_infos[1]} | {module_infos[2]}.py]',
variable=module_infos[-1],
onvalue=True,
offvalue=False,
command=get_selected_modules,
style='Module.TCheckbutton')
mlist_text.window_create('insert', window=cb)
mlist_text.insert('end', '\n')
mlist_text.config(state='disabled')
Expand Down Expand Up @@ -820,6 +824,14 @@ def close_case_window():
)
style.configure('TScrollbar', background=theme_button, arrowcolor='black', troughcolor=theme_inputcolor)
style.configure('TProgressbar', thickness=4, background='DarkGreen')
style.configure(
'Module.TCheckbutton',
background=theme_bgcolor,
foreground=theme_fgcolor)
style.map(
'Module.TCheckbutton',
background=[('active', theme_bgcolor)],
foreground=[('active', theme_fgcolor)])

## Main Window Layout
### Top part of the window
Expand Down Expand Up @@ -911,6 +923,9 @@ def close_case_window():
main_window.bind_class('Checkbutton', '<MouseWheel>', scroll)
main_window.bind_class('Checkbutton', '<Button-4>', scroll)
main_window.bind_class('Checkbutton', '<Button-5>', scroll)
main_window.bind_class('TCheckbutton', '<MouseWheel>', scroll)
main_window.bind_class('TCheckbutton', '<Button-4>', scroll)
main_window.bind_class('TCheckbutton', '<Button-5>', scroll)
main_window.bind("<Control-f>", lambda event: modules_filter_entry.focus_set()) # Focus on The Filter Field
main_window.bind("<Control-i>", lambda event: input_entry.focus_set()) # Focus on the Input Field
main_window.bind("<Control-o>", lambda event: output_entry.focus_set()) # Focus on the Output Field
Expand Down
Loading