def view_boot_entries(self): self.log("\n--- Current Boot Entries ---") self.run_admin_cmd("bcdedit /enum", "Enumerating BCD store")
self.log("WinBootMate ready. Run as Admin for full features.") winbootmate full
self.log(f"\n--- Creating bootable USB on {usb_drive} from {iso_path} ---") self.log("This will FORMAT the USB drive. Continue?") if not messagebox.askyesno("Warning", f"All data on {usb_drive} will be erased. Continue?"): return def view_boot_entries(self): self
# Output area self.output = scrolledtext.ScrolledText(root, wrap=tk.WORD, height=20, font=("Consolas", 9)) self.output.pack(fill=tk.BOTH, expand=True, padx=10, pady=10) pady=10) usb_drive = tk.simpledialog.askstring("USB Drive"
usb_drive = tk.simpledialog.askstring("USB Drive", f"Enter USB drive letter (e.g., E:)\nDetected: {drives}") if not usb_drive: return
def log(self, msg): self.output.insert(tk.END, msg + "\n") self.output.see(tk.END) self.root.update()