File: wxApp1.py

package info (click to toggle)
boa-constructor 0.3.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,188 kB
  • ctags: 8,857
  • sloc: python: 54,163; sh: 66; makefile: 36
file content (23 lines) | stat: -rw-r--r-- 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
#Boa:App:BoaApp

from wxPython.wx import *

import wxMDIParentFrame1

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

class BoaApp(wxApp):
    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()