mirror of
https://gitlab.os-k.eu/neox/CNIRevelator.git
synced 2023-08-25 14:03:10 +02:00
Update CNIRLauncher.py
This commit is contained in:
parent
6793974411
commit
dafe98a347
@ -32,7 +32,11 @@ import traceback
|
||||
import updater # updater.py
|
||||
import ihm # ihm.py
|
||||
import globs # globs.py
|
||||
from globs import logfile
|
||||
import logger # logger.py
|
||||
|
||||
## Global Handlers
|
||||
logfile = logger.logCur
|
||||
launcherWindow = ihm.launcherWindowCur
|
||||
|
||||
## Main function
|
||||
def main():
|
||||
@ -42,20 +46,21 @@ def main():
|
||||
|
||||
# Hello world
|
||||
logfile.printdbg('*** CNIRLauncher LOGFILE. Hello World ! ***')
|
||||
logfile.printdbg('Files in directory : ' + str(os.listdir(globs.CNIRFolder)))
|
||||
#logfile.printdbg('Files in directory : ' + str(os.listdir(globs.CNIRFolder)))
|
||||
|
||||
# Hello user
|
||||
launcherWindow = ihm.LauncherWindow()
|
||||
|
||||
launcherWindow.progressBar.configure(mode='indeterminate', value=0, maximum=20)
|
||||
launcherWindow.mainCanvas.itemconfigure(launcherWindow.msg, text='Chalut!')
|
||||
launcherWindow.mainCanvas.itemconfigure(launcherWindow.msg, text='Starting...')
|
||||
launcherWindow.progressBar.start()
|
||||
|
||||
launcherWindow.mainloop()
|
||||
|
||||
logfile.printdbg('*** CNIRLauncher LOGFILE. Goodbye World ! ***')
|
||||
return
|
||||
|
||||
## Bootstrap
|
||||
try:
|
||||
mainThread = threading.Thread(target=updater.umain, daemon=True)
|
||||
mainThread = threading.Thread(target=updater.umain, daemon=False)
|
||||
main()
|
||||
except Exception:
|
||||
logfile.printerr("A FATAL ERROR OCCURED : " + str(traceback.format_exc()))
|
||||
|
Loading…
Reference in New Issue
Block a user