Skip to content

Commit

Permalink
moved interrupt button to save more vertical space
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsgalore committed Aug 28, 2024
1 parent 7d6f3be commit 26c5984
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions diskimgr/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,29 +509,31 @@ def build_gui(self):

ttk.Separator(self, orient='horizontal').grid(column=0, row=19, columnspan=4, sticky='ew')

# Start button
self.start_button = tk.Button(self,
text='Start',
width=10,
underline=0,
command=self.on_submit)
self.start_button.grid(column=1, row=20, sticky='w')

self.quit_button = tk.Button(self,
text='Exit',
width=10,
underline=0,
command=self.on_quit)
self.quit_button.grid(column=1, row=20, sticky='e')

# Interrupt button (disabled on startup)
self.interrupt_button = tk.Button(self,
text='Interrupt',
underline=0,
command=self.interruptImaging,
width=8)
self.interrupt_button.grid(column=1, row=21, sticky='w')
self.interrupt_button.grid(column=1, row=20, sticky='')
self.interrupt_button.config(state='disabled')

# Exit button
self.quit_button = tk.Button(self,
text='Exit',
width=10,
underline=0,
command=self.on_quit)
self.quit_button.grid(column=1, row=20, sticky='e')

ttk.Separator(self, orient='horizontal').grid(column=0, row=22, columnspan=4, sticky='ew')

# Add ScrolledText widget to display logging info
Expand Down

0 comments on commit 26c5984

Please sign in to comment.