def create_zip_button(self, gs):
"""Expand frame to reveal options when Create ZIP File is selected."""
if self.zip_button_var.get() == 1:
self.split_button_var = tk.IntVar()
self.split_button = ttk.Checkbutton(self.zip_frame,
text='Split ZIP File',
variable=self.split_button_var)
self.split_button.grid(row=2, column=0, sticky='w')
self.split_button.grid_configure(padx=2, pady=5)
self.split_entry_var = tk.IntVar()
self.split_entry = ttk.Entry(self.zip_frame,
width=3,
justify='right',
textvariable=self.split_entry_var)
self.split_entry.grid(row=2, column=1, sticky='e')
self.split_entry.grid_configure(pady=5)
self.split_entry_var.set('2')
self.split_combo = ttk.Combobox(self.zip_frame,
width=4,
justify='left',
values='MB GB')
self.split_combo.current(1)
self.split_combo.grid(row=2, column=2, sticky='w')
self.split_combo.grid_configure(pady=5)
else:
self.split_button.destroy()
self.split_entry.destroy()
self.split_combo.destroy()
评论列表
文章目录