Reposition ESP flash mode
@@ -147,20 +147,11 @@ class ESPFlashingDialog(CommonDialogEx):
browse_button = ttk.Button(self.main_frame, text="Browse...", command=self._browse)
browse_button.grid(row=2, column=3, sticky="we", padx=(0, epadx), pady=(ipady, 0))
- # Erase
- self._erase_variable = tk.BooleanVar(value=True)
- self._erase_checkbutton = ttk.Checkbutton(
- self.main_frame, text="Erase flash before installing", variable=self._erase_variable
- )
- self._erase_checkbutton.grid(
- row=3, column=1, columnspan=3, sticky="w", padx=(epadx, 0), pady=(ipady, 0)
- )
-
# FLASH_MODE
self._flashmode = tkinter.StringVar(None, "keep")
flashmode_group = LabelFrame(self.main_frame, text="Flash mode", padx=10, pady=10)
flashmode_group.grid(
- row=4, column=1, columnspan=2, sticky="w", padx=(epadx, 0), pady=(ipady, 0)
+ row=4, column=1, columnspan=2, sticky="w", padx=(epadx, 0), pady=(ipady * 2, 0)
)
self._flashmode_keep_radiobutton = ttk.Radiobutton(
@@ -184,13 +175,22 @@ class ESPFlashingDialog(CommonDialogEx):
)
self._flashmode_dout_radiobutton.grid(row=1, column=1, sticky="w")
+ # Erase
+ self._erase_variable = tk.BooleanVar(value=True)
+ self._erase_checkbutton = ttk.Checkbutton(
+ self.main_frame, text="Erase flash before installing", variable=self._erase_variable
+ )
+ self._erase_checkbutton.grid(
+ row=6, column=1, columnspan=2, sticky="w", padx=(epadx, 0), pady=(ipady, epady)
+ )
+
# Buttons
install_button = ttk.Button(self.main_frame, text="Install", command=self._install)
- install_button.grid(row=5, column=1, columnspan=2, sticky="e", padx=ipadx, pady=(0, epady))
+ install_button.grid(row=6, column=2, columnspan=1, sticky="e", padx=ipadx, pady=(0, epady))
cancel_button = ttk.Button(self.main_frame, text="Close", command=self._close)
cancel_button.grid(
- row=5, column=3, columnspan=1, sticky="we", padx=(0, epadx), pady=(0, epady)
+ row=6, column=3, columnspan=1, sticky="e", padx=(0, epadx), pady=(0, epady)
)
self._reload_ports()
