-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
013d1c1
commit af5f310
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
__author__ = 'Oliver Lindemann' | ||
|
||
import forceDAQ | ||
forceDAQ.USE_DUMMY_SENSOR = True | ||
TRY_TK_LAUNCHER = True | ||
forceDAQ.USE_DUMMY_SENSOR = True # <-- change for usage in lab to False | ||
|
||
if __name__ == "__main__": # required because of threading | ||
from forceDAQ.gui import run | ||
|
||
tk_launcher = None | ||
if TRY_TK_LAUNCHER: | ||
try: | ||
from forceDAQ.gui import tk_launcher | ||
except: | ||
print("Warning: Install PySimpleGUI to use tk_launcher GUI.") | ||
try: | ||
from forceDAQ.gui import tk_launcher | ||
except: | ||
print("Warning: Install PySimpleGUI to use tk_launcher GUI.") | ||
|
||
if tk_launcher is not None: | ||
tk_launcher.run() | ||
else: | ||
run() | ||
run() |