From 57e9348ca25c26c22fe2056cc6cee59941b8924d Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:15:58 -0500 Subject: [PATCH] feat: no gui mode remove debug prints --- EyeTrackApp/eyetrackapp.py | 39 +------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/EyeTrackApp/eyetrackapp.py b/EyeTrackApp/eyetrackapp.py index a844a45..ef76d06 100644 --- a/EyeTrackApp/eyetrackapp.py +++ b/EyeTrackApp/eyetrackapp.py @@ -81,7 +81,6 @@ class KeyManager: # Create an instance of the KeyManager key_manager = KeyManager() - def create_window(config, settings, eyes): key_manager.update_keys() @@ -213,7 +212,6 @@ def main(): cancellation_event = threading.Event() # Check to see if we can connect to our video source first. If not, bring up camera finding # dialog. - try: if config.settings.gui_update_check: response = requests.get("https://api.github.com/repos/EyeTrackVR/EyeTrackVR/releases/latest") @@ -285,7 +283,6 @@ def main(): osc_manager.start() - # window = create_window(config, settings, eyes) while True: if config.settings.gui_disable_gui: @@ -451,39 +448,5 @@ def main(): if setting.started(): setting.render(window, event, values) - - - - # while True: - # print('main loop') - # if config.settings.gui_disable_gui: - # layoutg = [[sg.Button("Enable GUI")]] - - # Create the window - # windowc = sg.Window("Simple Button", layoutg) - - # Event loop to process events and get the values of the inputs - # while True: - # eventg, valuesg = windowc.read() -# - # If user closes window or clicks the button, break the loop - # if eventg == sg.WINDOW_CLOSED: - # break - # elif eventg == "Enable GUI": - # config.settings.gui_disable_gui = False - # config.save() - # break - - # Close the window - # windowc.close() - - - - # else: - # print('main loop') - # run_window(config, settings, eyes) - - - if __name__ == "__main__": - main() + main() \ No newline at end of file