File: wxApp1.py

package info (click to toggle)
boa-constructor 0.6.1-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,624 kB
  • ctags: 13,427
  • sloc: python: 63,696; makefile: 16; sh: 1
file content (22 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Boa:App:BoaApp

import wx

import wxMDIParentFrame1

modules ={'wxMDIChildFrame1': [0, '', 'wxMDIChildFrame1.py'],
 'wxMDIParentFrame1': [1, '', 'wxMDIParentFrame1.py']}

class BoaApp(wx.App):
    def OnInit(self):
        self.main = wxMDIParentFrame1.create(None)
        self.main.Show(True)
        self.SetTopWindow(self.main)
        return True

def main():
    application = BoaApp(0)
    application.MainLoop()

if __name__ == '__main__':
    main()