mirror of
https://gitlab.os-k.eu/neox/CNIRevelator.git
synced 2023-08-25 14:03:10 +02:00
Update ihm.py
This commit is contained in:
parent
ac82c3c97d
commit
27e50768a8
@ -28,8 +28,8 @@ from tkinter.messagebox import *
|
|||||||
from tkinter import filedialog
|
from tkinter import filedialog
|
||||||
from tkinter import ttk
|
from tkinter import ttk
|
||||||
|
|
||||||
import globs # globs.py
|
import logger # logger.py
|
||||||
from globs import logfile
|
import globs # globs.py
|
||||||
|
|
||||||
class LoginDialog(Toplevel):
|
class LoginDialog(Toplevel):
|
||||||
|
|
||||||
@ -90,10 +90,12 @@ class LauncherWindow(Tk):
|
|||||||
self.progressBar = ttk.Progressbar(self.pBarZone, orient=HORIZONTAL, length=wwidth-10, mode='determinate')
|
self.progressBar = ttk.Progressbar(self.pBarZone, orient=HORIZONTAL, length=wwidth-10, mode='determinate')
|
||||||
#self.update()
|
#self.update()
|
||||||
|
|
||||||
self.mainCanvas.create_text((wwidth / 2), (wheight / 3), text=(globs.CNIRName), font='Calibri 30 bold', fill='white')
|
self.mainCanvas.create_text((wwidth / 2), (wheight / 3), text=(globs.CNIRName), font='Helvetica 30', fill='white')
|
||||||
self.msg = self.mainCanvas.create_text((wwidth / 2.05), (wheight / 1.20), text='Starting...', font='Calibri 9', fill='white')
|
self.msg = self.mainCanvas.create_text((wwidth / 2.05), (wheight / 1.20), text='', font='Helvetica 9', fill='white')
|
||||||
#self.update()
|
#self.update()
|
||||||
|
|
||||||
|
self.wm_title(globs.CNIRName)
|
||||||
|
|
||||||
# Centering
|
# Centering
|
||||||
x = ws / 2 - wwidth / 2
|
x = ws / 2 - wwidth / 2
|
||||||
y = hs / 2 - wheight / 2
|
y = hs / 2 - wheight / 2
|
||||||
@ -108,22 +110,10 @@ class LauncherWindow(Tk):
|
|||||||
self.iconbitmap(sys._MEIPASS + '\\id-card.ico\\id-card.ico')
|
self.iconbitmap(sys._MEIPASS + '\\id-card.ico\\id-card.ico')
|
||||||
else:
|
else:
|
||||||
self.iconbitmap('id-card.ico')
|
self.iconbitmap('id-card.ico')
|
||||||
|
logfile = logger.logCur
|
||||||
logfile.printdbg('Launcher IHM successful')
|
logfile.printdbg('Launcher IHM successful')
|
||||||
self.protocol('WM_DELETE_WINDOW', lambda : self.destroy())
|
self.protocol('WM_DELETE_WINDOW', lambda : self.destroy())
|
||||||
|
|
||||||
|
## Global Handler
|
||||||
|
launcherWindowCur = LauncherWindow()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user