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 (31 lines) | stat: -rw-r--r-- 897 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
23
24
25
26
27
28
29
30
31
#Boa:App:BoaApp

import wx

import wxFrame1

modules ={'wxFrame1': [1, 'Main frame of Application', 'wxFrame1.py'],
 'wxFrame2': [0,
              'Example of frame as an attribute of another frame',
              'wxFrame2.py'],
 'wxFrame3': [0, 'Example of a dynamic frame', 'wxFrame3.py'],
 'wxPyWizardPage1': [0, '', 'wxPyWizardPage1.py'],
 'wxPyWizardPage2': [0, '', 'wxPyWizardPage2.py'],
 'wxWizard1': [0, '', 'wxWizard1.py'],
 'wxWizardPageSimple1': [0, '', 'wxWizardPageSimple1.py'],
 'wxWizardPageSimple2': [0, '', 'wxWizardPageSimple2.py']}

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

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

if __name__ == '__main__':
    main()