mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
minor: move variables for clarity and complete usage
This commit is contained in:
parent
3e1a3a05d4
commit
0d3128d397
@ -285,7 +285,8 @@ def main():
|
||||
osc_manager.start()
|
||||
|
||||
while True:
|
||||
|
||||
tint = 33
|
||||
fs = False
|
||||
if config.settings.gui_disable_gui:
|
||||
layoutg = [
|
||||
[sg.Text("GUI Disabled!", background_color="#242224")],
|
||||
@ -297,7 +298,7 @@ def main():
|
||||
|
||||
# Event loop
|
||||
while True:
|
||||
eventg, valuesg = windowg.read(timeout=33)
|
||||
eventg, valuesg = windowg.read(timeout=tint)
|
||||
|
||||
if eventg == sg.WINDOW_CLOSED:
|
||||
config.settings.gui_disable_gui = False
|
||||
@ -315,8 +316,7 @@ def main():
|
||||
# First off, check for any events from the GUI
|
||||
window = create_window(config, settings, eyes)
|
||||
|
||||
tint = 33
|
||||
fs = False
|
||||
|
||||
while True:
|
||||
event, values = window.read(timeout=tint) # this higher timeout saves some cpu usage
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user