Skip to content

Commit

Permalink
Fix executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Veras-D committed Dec 30, 2023
1 parent ec07bcc commit 9a73923
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def Arduino(porta):


def open_new_page():
if selected_port.get() != portas[0]:
if selected_port.get() != ports[0]:
for widget in root.winfo_children():
widget.pack_forget()

Expand Down Expand Up @@ -134,7 +134,7 @@ def led_pulse():
goHome.pack(pady=25)


portas = find_arduino()
ports = find_arduino()
root = ctk.CTk()
root.title("PyHolofotes")
root.geometry("300x120")
Expand All @@ -147,10 +147,10 @@ def led_pulse():
selected_port = StringVar()
selected_port.set("Selecione a porta")

dropdown = ctk.CTkOptionMenu(root, variable=selected_port, values=portas,
dropdown = ctk.CTkOptionMenu(root, variable=selected_port, values=ports,
command=lambda port=None: arduino_conected(selected_port.get()),
fg_color="purple", button_color="#8B008B", button_hover_color="#9370DB")
dropdown.set(portas[0])
dropdown.set(ports[0])
dropdown.pack(pady=5)


Expand Down

0 comments on commit 9a73923

Please sign in to comment.