• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(9044)  |  Call(9006)  |  Derive(38)  |  Import(0)
A button is a control that contains a text string, and is one of the most
common elements of a GUI.  It may be placed on a dialog box or panel, or
indeed almost any other window.

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/layout/SizersInBoa.py   wxPython-In-Action(Download)
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(442, 254),
              style=wx.TAB_TRAVERSAL)
 
        self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='button1',
              name='button1', parent=self.panel1, pos=wx.Point(0, 0),
              size=wx.Size(75, 23), style=0)
 
        self.button2 = wx.Button(id=wxID_FRAME1BUTTON2, label='button2',
              name='button2', parent=self.panel1, pos=wx.Point(183, 103),
              size=wx.Size(75, 151), style=0)
 
        self.button3 = wx.Button(id=wxID_FRAME1BUTTON3, label='button3',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(442, 254),
              style=wx.TAB_TRAVERSAL)
 
        self.button4 = wx.Button(id=wxID_FRAME1BUTTON4, label='button4',
              name='button4', parent=self.panel2, pos=wx.Point(0, 0),
              size=wx.Size(75, 23), style=0)
 
        self.button5 = wx.Button(id=wxID_FRAME1BUTTON5, label='button5',
              name='button5', parent=self.panel2, pos=wx.Point(221, 0),
              size=wx.Size(75, 23), style=0)
 
        self.button6 = wx.Button(id=wxID_FRAME1BUTTON6, label='button6',
              name='button6', parent=self.panel2, pos=wx.Point(0, 84),
              size=wx.Size(75, 23), style=0)
 
        self.button7 = wx.Button(id=wxID_FRAME1BUTTON7, label='button7',
              name='button7', parent=self.panel2, pos=wx.Point(221, 84),
              size=wx.Size(75, 23), style=0)
 
        self.button8 = wx.Button(id=wxID_FRAME1BUTTON8, label='button8',
              name='button8', parent=self.panel2, pos=wx.Point(0, 168),
              size=wx.Size(75, 23), style=0)
 
        self.button9 = wx.Button(id=wxID_FRAME1BUTTON9, label='button9',
              label='staticBox1', name='staticBox1', parent=self.panel4,
              pos=wx.Point(0, 0), size=wx.Size(442, 254), style=0)
 
        self.button10 = wx.Button(id=wxID_FRAME1BUTTON10, label='button10',
              name='button10', parent=self.panel3, pos=wx.Point(10, 10),
              size=wx.Size(232, 191), style=0)
 
        self.button11 = wx.Button(id=wxID_FRAME1BUTTON11, label='button11',
              name='button11', parent=self.panel3, pos=wx.Point(262, 10),
              size=wx.Size(75, 23), style=0)
 
        self.button12 = wx.Button(id=wxID_FRAME1BUTTON12, label='button12',
              name='button12', parent=self.panel3, pos=wx.Point(357, 10),
              size=wx.Size(75, 23), style=0)
 
        self.button13 = wx.Button(id=wxID_FRAME1BUTTON13, label='button13',
              name='button13', parent=self.panel3, pos=wx.Point(88, 221),
              size=wx.Size(75, 23), style=0)
 
        self.button14 = wx.Button(id=wxID_FRAME1BUTTON14, label='button14',
              name='button14', parent=self.panel3, pos=wx.Point(262, 221),
              size=wx.Size(75, 23), style=0)
 
        self.button15 = wx.Button(id=wxID_FRAME1BUTTON15, label='button15',
              name='button15', parent=self.panel3, pos=wx.Point(357, 221),
              size=wx.Size(75, 23), style=0)
 
        self.button16 = wx.Button(id=wxID_FRAME1BUTTON16, label='button16',
              name='button16', parent=self.panel4, pos=wx.Point(183, 25),
              size=wx.Size(75, 23), style=0)
 
        self.button17 = wx.Button(id=wxID_FRAME1BUTTON17, label='button17',
              name='button17', parent=self.panel4, pos=wx.Point(161, 48),
              size=wx.Size(120, 170), style=0)
 
        self.button18 = wx.Button(id=wxID_FRAME1BUTTON18, label='button18',
              name='button18', parent=self.panel4, pos=wx.Point(128, 218),
              size=wx.Size(185, 23), style=0)
 
        self.button19 = wx.Button(id=wxID_FRAME1BUTTON19, label='button19',
              name='button19', parent=self.panel1, pos=wx.Point(70, 40),
              size=wx.Size(75, 23), style=0)
 
        self.button20 = wx.Button(id=wxID_FRAME1BUTTON20, label='button20',
              name='button20', parent=self.panel1, pos=wx.Point(169, 23),
              size=wx.Size(104, 57), style=0)
 
        self.button21 = wx.Button(id=wxID_FRAME1BUTTON21, label='button21',

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/guide/AddressEntry.py   wxPython-In-Action(Download)
              parent=self.panel1, pos=wx.Point(61, 269), size=wx.Size(366, 21),
              style=0, value='')
 
        self.add = wx.Button(id=wx.ID_ADD, label='', name='add',
              parent=self.panel1, pos=wx.Point(2, 294), size=wx.Size(75, 23),
              style=0)
        self.add.Bind(wx.EVT_BUTTON, self.OnAddButton, id=wxID_ADDRESSENTRYADD)
 
        self.delete = wx.Button(id=wx.ID_DELETE, label='', name='delete',
              parent=self.panel1, pos=wx.Point(81, 294), size=wx.Size(75, 23),
              style=0)
 
        self.save = wx.Button(id=wx.ID_SAVE, label='', name='save',
              parent=self.panel1, pos=wx.Point(160, 294), size=wx.Size(75, 23),
              style=0)
 
        self.close = wx.Button(id=wx.ID_CLOSE, label='', name='close',
              parent=self.panel1, pos=wx.Point(239, 294), size=wx.Size(75, 23),
              style=0)
 

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/Everything.py   wxPython-In-Action(Download)
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)
 
        self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='button1',
              name='button1', parent=self.panel3, pos=wx.Point(16, 16),
              size=wx.Size(75, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/guide/Dialog1.py   wxPython-In-Action(Download)
              name='staticBitmap1', parent=self, pos=wx.Point(72, 80),
              size=wx.Size(236, 157), style=0)
 
        self.button1 = wx.Button(id=wxID_DIALOG1BUTTON1, label='Close',
              name='button1', parent=self, pos=wx.Point(152, 248),
              size=wx.Size(75, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/guide/Dialog2.py   wxPython-In-Action(Download)
              name='staticBitmap3', parent=self, pos=wx.Point(413, 107),
              size=wx.Size(116, 49), style=0)
 
        self.button1 = wx.Button(id=wxID_DIALOG2BUTTON1, label='Close',
              name='button1', parent=self, pos=wx.Point(253, 218),
              size=wx.Size(75, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/frames/wxFrame1.py   wxPython-In-Action(Download)
              style=wx.DEFAULT_FRAME_STYLE, title='wxFrame1')
        self.SetClientSize(wx.Size(362, 119))
 
        self.button1 = wx.Button(id=wxID_WXFRAME1BUTTON1, label='Show Frame 2',
              name='button1', parent=self, pos=wx.Point(112, 16),
              size=wx.Size(152, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_WXFRAME1BUTTON1)
 
        self.button2 = wx.Button(id=wxID_WXFRAME1BUTTON2, label='Show Frame 3',
        self.button2.Bind(wx.EVT_BUTTON, self.OnButton2Button,
              id=wxID_WXFRAME1BUTTON2)
 
        self.button3 = wx.Button(id=wxID_WXFRAME1BUTTON3, label='Show Wizard',
              name='button3', parent=self, pos=wx.Point(112, 80),
              size=wx.Size(152, 23), style=0)
        self.button3.Bind(wx.EVT_BUTTON, self.OnButton3Button,

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/advanced/SpecialAttributes/wxFrame1.py   wxPython-In-Action(Download)
              style=wx.DEFAULT_FRAME_STYLE, title=self.frameTitle)
        self.SetClientSize(wx.Size(299, 273))
 
        self.button1 = wx.Button(id=wxID_WXFRAME1BUTTON1,
              label=self.buttonLabel, name='button1', parent=self,
              pos=wx.Point(96, 104), size=wx.Size(104, 24), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/layout/AnchorsInBoa.py   wxPython-In-Action(Download)
        self.textCtrl1.SetConstraints(LayoutAnchors(self.textCtrl1, True, True,
              True, True))
 
        self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='button1',
              name='button1', parent=self, pos=wx.Point(216, 72),
              size=wx.Size(72, 24), style=0)
        self.button1.SetConstraints(LayoutAnchors(self.button1, False, False,
              True, True))
 
        self.button2 = wx.Button(id=wxID_FRAME1BUTTON2, label='button2',

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/frames/wxWizard1.py   wxPython-In-Action(Download)
        self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGED,
              self.OnWxwizard1WizardPageChanged, id=wxID_WXWIZARD1)
 
        self.button1 = wx.Button(id=wxID_WXWIZARD1BUTTON1, label='debug',
              name='button1', parent=self, pos=wx.Point(8, 312),
              size=wx.Size(40, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,

src/w/x/wxPython-In-Action-HEAD/BOA_demo/Examples/xrc/wxXrcPanel.py   wxPython-In-Action(Download)
        self.boaXrcPanel.SetSize(wx.Size(216, 88))
        self.boaXrcPanel.SetPosition(wx.Point(8, 8))
 
        self.button1 = wx.Button(id=wxID_WXFRAME1BUTTON1, label='OK',
              name='button1', parent=self.panel1, pos=wx.Point(144, 104),
              size=wx.Size(75, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next