File: wxPyWizardPage1.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 (48 lines) | stat: -rw-r--r-- 1,686 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#Boa:PyWizardPage:wxPyWizardPage1

from wxPython.wx import *
from wxPython.wizard import *

[wxID_WXPYWIZARDPAGE1, wxID_WXPYWIZARDPAGE1BUTTON1, 
 wxID_WXPYWIZARDPAGE1BUTTON2, wxID_WXPYWIZARDPAGE1STATICTEXT1, 
] = map(lambda _init_ctrls: wxNewId(), range(4))

class wxPyWizardPage1(wxPyWizardPage):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wxPyWizardPage.__init__(self, bitmap=wxNullBitmap, parent=prnt,
              resource='')

        self.staticText1 = wxStaticText(id=wxID_WXPYWIZARDPAGE1STATICTEXT1,
              label='PyWizardPage1', name='staticText1', parent=self,
              pos=wxPoint(8, 8), size=wxSize(76, 13), style=0)

        self.button1 = wxButton(id=wxID_WXPYWIZARDPAGE1BUTTON1, label='button1',
              name='button1', parent=self, pos=wxPoint(8, 32), size=wxSize(75,
              23), style=0)
        EVT_BUTTON(self.button1, wxID_WXPYWIZARDPAGE1BUTTON1,
              self.OnButton1Button)

        self.button2 = wxButton(id=wxID_WXPYWIZARDPAGE1BUTTON2, label='button2',
              name='button2', parent=self, pos=wxPoint(400, 88), size=wxSize(75,
              23), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)

    _next = None
    def GetNext(self):
        return self._next
    def SetNext(self, value):
        self._next = value
    Next = property(GetNext, SetNext)

    _prev = None
    def GetPrev(self):
        return self._prev
    def SetPrev(self, value):
        self._prev = value
    Prev = property(GetPrev, SetPrev)

    def OnButton1Button(self, event):
        self.staticText1.SetLabel(`self.GetSize()`)