-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
32 lines (21 loc) · 868 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import wx
from gui import BaseWindow, ElevatorsPanel, ControlPanel, ElevatorStatusPanel, StatsPanel, LogPanel
class BaseApp(wx.App):
def __init__(self):
self.ready = False
super().__init__()
def OnInit(self):
self.window = BaseWindow(app=self)
self.window.Show()
self.current_elevators = ElevatorsPanel(window=self.window)
self.current_elevators.Show()
self.control_panel = ControlPanel(window=self.window)
self.control_panel.Show()
self.elevator_status_panel = ElevatorStatusPanel(window=self.window)
self.elevator_status_panel.Show()
self.stats_panel = StatsPanel(window=self.window)
self.stats_panel.Show()
self.log_panel = LogPanel(window=self.window)
self.log_panel.Show()
self.SetTopWindow(self.window)
return True