-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gui.py
32 lines (24 loc) · 798 Bytes
/
Gui.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Flight-Tracker by Travis Hagen
import wx, Panels, PlaneData
#Should it run in fullscreen mode or windowed mode?
RUN_FULLSCREEN = True
class MainFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="PlaneTracker")
panel = Panels.MainPanel(self)
if(RUN_FULLSCREEN):
self.ShowFullScreen(True)
#Hide the cursor, I have a touch screen hooked up. If you want to see the cursor remove the following two lines.
cursor = wx.Cursor(wx.CURSOR_BLANK)
self.SetCursor(cursor)
else:
self.Size = (800,510)
self.Show()
def main():
app = wx.App(0)
frame = MainFrame()
app.MainLoop()
if __name__ == '__main__':
main()