New theme

This commit is contained in:
2025-07-10 15:27:53 +01:00
parent 56a47bc4a3
commit ae0b65b28c
7 changed files with 104 additions and 2 deletions
+15 -2
View File
@@ -2,6 +2,7 @@ import os
import json
import subprocess
import tkinter as tk
from tkinter import ttk
from tkinter import filedialog, messagebox
import serial.tools.list_ports
@@ -9,7 +10,6 @@ import serial.tools.list_ports
class RP2040UploaderApp:
def __init__(self, master):
self.master = master
master.title("RP2040 Uploader")
self.folder_path = os.path.join(os.getcwd(), "Resources/RP2040")
self.config_path = os.path.join(self.folder_path, "config.json")
@@ -30,7 +30,7 @@ class RP2040UploaderApp:
self.load_config()
self.upload_button = tk.Button(master, text="Upload Files", command=self.upload_files, state=tk.NORMAL if self.port else tk.DISABLED)
self.upload_button = ttk.Button(master, text="Upload Files", style="Accent.TButton", command=self.upload_files, state=tk.NORMAL if self.port else tk.DISABLED)
self.upload_button.pack(pady=10)
def create_labeled_entry(self, label_text):
@@ -116,4 +116,17 @@ class RP2040UploaderApp:
if __name__ == "__main__":
root = tk.Tk()
app = RP2040UploaderApp(root)
root.title("RP2040 Flasher V1.0.0")
root.iconbitmap(r'Resources/icon1.ico')
# Simply set the theme
root.tk.call("source", "Resources/azure.tcl")
root.tk.call("set_theme", "dark")
#Set a minsize for the window, and place it in the middle
root.update()
root.minsize(400, 200)
root.mainloop()