forked from UCSD-TIES/DVS-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.py
More file actions
22 lines (19 loc) · 719 Bytes
/
base.py
File metadata and controls
22 lines (19 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import wx
from page import *
class base(wx.Frame):
def __init__(self, parent, id, title, pos, size, style):
#main frame setup, holds everything
#wx.Frame(parent, id=-1, title=EmptyString, pos=DefaultPosition,
# size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr)
base = wx.Frame(parent, id, title, pos, size, style)
pageSizer = wx.BoxSizer(wx.VERTICAL) # Sizer for the frame
base.SetSizer(pageSizer)
#add things to panel, then add to the sizers
#initialize pages from page class
#see page.py constructor for parameter usage
page(base, pageSizer)
#put pages into a vector so all pages can modified at once
#setup base frame
base.Centre()
#base.Maximize()
base.Show()