Skip to content

Commit 59042a4

Browse files
committedApr 20, 2024
add new window checkboxes
1 parent 0b04438 commit 59042a4

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
 

‎exefy.exe

7.77 MB
Binary file not shown.

‎main.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ def __init__(self, *args, **kwargs):
266266
# Create Full tree button
267267
self.create_full_tree_button = ctk.CTkButton(self.tree_frame, text="Full", width=90, command=self.create_tree)
268268
self.create_full_tree_button.grid(row=2, column=1, pady=5, padx=5, sticky="nwse")
269+
self.open_in_new_window_checkbox = ctk.CTkCheckBox(self.tree_frame,
270+
text="Open in new window",
271+
variable=self.operate_folder_var,
272+
command=self.push_checkbox,
273+
onvalue=True,
274+
offvalue=False)
275+
self.open_in_new_window_checkbox.grid(row=3, column=1, columnspan=2, padx=5, sticky="we")
269276

270277
# Media Info frame area
271278
self.media_info_frame = ctk.CTkFrame(self.root_frame)
@@ -280,6 +287,14 @@ def __init__(self, *args, **kwargs):
280287
# Get full media info log box function
281288
self.create_get_full_media_info_button = ctk.CTkButton(self.media_info_frame, text="Full", width=90, command=self.get_full_media_info)
282289
self.create_get_full_media_info_button.grid(row=1, column=2, pady=5, padx=5, sticky="we")
290+
self.open_in_new_window_checkbox = ctk.CTkCheckBox(self.media_info_frame,
291+
text="Open in new window",
292+
variable=self.operate_folder_var,
293+
command=self.push_checkbox,
294+
onvalue=True,
295+
offvalue=False)
296+
self.open_in_new_window_checkbox.grid(row=3, column=1,columnspan=2, padx=5, sticky="we")
297+
283298

284299
# Log area
285300
self.log_frame = ctk.CTkFrame(self)
@@ -337,13 +352,11 @@ def clear_logbox(self):
337352
def get_full_media_info(self):
338353
file_path = filedialog.askopenfilename()
339354
file_info = FileInfo(file_path)
340-
# self.log_operation(file_info.print_info())
341355
file_info.print_info_to_text_widget(self.log_box, 'detailed')
342356

343357
def get_compact_media_info(self):
344358
file_path = filedialog.askopenfilename()
345359
file_info = FileInfo(file_path)
346-
# self.log_operation(file_info.print_info())
347360
file_info.print_info_to_text_widget(self.log_box, 'compact')
348361

349362
def update_label_info(self, entry, label):

0 commit comments

Comments
 (0)
Please sign in to comment.