Add missing EVT_TOGGLEBUTTON

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-12-29 02:33:19 +00:00
parent 6291fd7cc9
commit e7a2c5fac1
2 changed files with 9 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
module.addHeaderCode("#include <wx/tglbtn.h>")
c = module.find('wxToggleButton')
c.find('wxToggleButton.label').default = 'wxEmptyString'
c.find('Create.label').default = 'wxEmptyString'
@@ -43,6 +45,9 @@ def run():
c.find('Create.label').default = 'wxNullBitmap'
tools.fixWindowClass(c)
module.addPyCode("""\
EVT_TOGGLEBUTTON = PyEventBinder(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1)""")
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)

View File

@@ -14,7 +14,6 @@ class tglbtn_Tests(wtc.WidgetTestCase):
btn = wx.ToggleButton(self.frame, -1, 'label', (10,10), (100,-1), wx.BU_LEFT)
bmp = wx.Bitmap(pngFile)
btn.SetBitmap(bmp)
def test_ButtonDefaultCtor(self):
@@ -22,7 +21,11 @@ class tglbtn_Tests(wtc.WidgetTestCase):
btn.Create(self.frame, -1, 'button label')
def test_ButtonDefaultEvt(self):
wx.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
wx.EVT_TOGGLEBUTTON
#---------------------------------------------------------------------------