From 26c59845aea5dafa7c1b33afcce37c810e771daf Mon Sep 17 00:00:00 2001 From: bitsgalore Date: Wed, 28 Aug 2024 17:24:20 +0200 Subject: [PATCH] moved interrupt button to save more vertical space --- diskimgr/gui.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/diskimgr/gui.py b/diskimgr/gui.py index 4d58785..8a83d37 100644 --- a/diskimgr/gui.py +++ b/diskimgr/gui.py @@ -509,6 +509,7 @@ 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, @@ -516,22 +517,23 @@ def build_gui(self): 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