mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user