-
Notifications
You must be signed in to change notification settings - Fork 1
/
app_struct.py
42 lines (34 loc) · 965 Bytes
/
app_struct.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
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
# --- Header : begin ---
# -*- coding: iso-8859-15 -*-
# generated by mkdb
import wx
# --- Header : end ---
# --- InitBase : begin ---
class MyFrame1(wx.Frame):
def __init__(self, *args, **kwds):
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
# --- InitBase : end ---
# --- Properties : begin ---
self.__set_properties()
self.__do_layout()
def __set_properties(self):
self.SetTitle("frame_2")
# --- Properties : end ---
# --- Layout : begin ---
def __do_layout(self):
sizer_2 = wx.BoxSizer(wx.VERTICAL)
self.SetSizer(sizer_2)
sizer_2.Fit(self)
self.Layout()
# --- Layout : end ---
# --- App : begin ---
if __name__ == "__main__":
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
frame_1 = MyFrame(None, -1, "")
app.SetTopWindow(frame_1)
frame_1.Show()
app.MainLoop()
# --- App : end ---