File: wxPyWizardPage1.py

package info (click to toggle)
boa-constructor 0.4.4cvs20050714-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,080 kB
  • ctags: 9,175
  • sloc: python: 56,189; sh: 545; makefile: 40
file content (48 lines) | stat: -rw-r--r-- 1,643 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

import wx
import wx.wizard 

[wxID_WXPYWIZARDPAGE1, wxID_WXPYWIZARDPAGE1BUTTON1, 
 wxID_WXPYWIZARDPAGE1BUTTON2, wxID_WXPYWIZARDPAGE1STATICTEXT1, 
] = [wx.NewId() for _init_ctrls in range(4)]

class wxPyWizardPage1(wx.wizard.PyWizardPage):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.wizard.PyWizardPage.__init__(self, bitmap=wx.NullBitmap, parent=prnt,
              resource='')

        self.staticText1 = wx.StaticText(id=wxID_WXPYWIZARDPAGE1STATICTEXT1,
              label='PyWizardPage1', name='staticText1', parent=self,
              pos=wx.Point(8, 8), size=wx.Size(76, 13), style=0)

        self.button1 = wx.Button(id=wxID_WXPYWIZARDPAGE1BUTTON1,
              label='button1', name='button1', parent=self, pos=wx.Point(8, 32),
              size=wx.Size(75, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_WXPYWIZARDPAGE1BUTTON1)

        self.button2 = wx.Button(id=wxID_WXPYWIZARDPAGE1BUTTON2,
              label='button2', name='button2', parent=self, pos=wx.Point(400,
              88), size=wx.Size(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()`)