From 10a20605474f408d17ed09794ef620cefa454a49 Mon Sep 17 00:00:00 2001 From: elias Date: Wed, 2 Apr 2025 15:26:17 +0200 Subject: [PATCH] Update controller/main.py --- controller/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controller/main.py b/controller/main.py index a9beec2..479eb50 100644 --- a/controller/main.py +++ b/controller/main.py @@ -1,4 +1,4 @@ -import tkinter as tk, threading, robomasterpy as rm +import tkinter as tk, robomasterpy as rm from tkinter import ttk class RobomasterUI: @@ -73,7 +73,7 @@ class RobomasterUI: master.bind("", lambda event: self.stop_chassis()) def _run_command(self, func, *args, **kwargs): - threading.Thread(target=lambda: self._command_executor(func, *args, **kwargs)).start() + self._command_executor(func, *args, **kwargs) def _command_executor(self, func, *args, **kwargs): try: @@ -154,7 +154,6 @@ class RobomasterUI: except ValueError: self._display_output("Error: Invalid speed value") - def main(): ip_address = "192.168.2.1" try: