wx.MenuItem updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-05-20 03:18:16 +00:00
parent 86cc655950
commit a22e09b786
2 changed files with 28 additions and 5 deletions

View File

@@ -150,9 +150,6 @@ other dev stuff
* Finish richtext module
* Add missing methods to wx.MenuItem (Those that are MSW only with
empty stubs for the other platforms, such as SetDisabledBitmap.)
* Potential reference count issue with wxGridCellCoordsArray? Code
like this::
@@ -164,6 +161,7 @@ other dev stuff
a[0]
a[0][0]
* In a Py3 build strings like wx.TreeCtrlNameStr are being generated as bytes
objects, they should probably be string objects.
* In a Py3 build strings like wx.TreeCtrlNameStr are being generated as
bytes objects, they should probably be string objects. Or not, sip's
default might be best... See ModuleDef.addGlobalStr if I change my mind.

View File

@@ -98,6 +98,15 @@ def run():
#endif
""")
c.find('GetBitmap').type = 'const wxBitmap*'
c.find('GetBitmap').setCppCode("""\
#ifdef __WXMSW__
return &self->GetBitmap(checked);
#else
return &self->GetBitmap();
#endif
""")
c.find('SetBitmap').setCppCode("""\
#ifdef __WXMSW__
@@ -115,6 +124,22 @@ def run():
#endif
""")
c.find('GetDisabledBitmap').type = 'const wxBitmap*'
c.find('GetDisabledBitmap').setCppCode("""\
#ifdef __WXMSW__
return &self->GetDisabledBitmap();
#else
return &wxNullBitmap;
#endif
""")
c.find('SetDisabledBitmap').setCppCode("""\
#ifdef __WXMSW__
self->SetDisabledBitmap(*disabled);
#endif
""")
c.find('GetAccel').factory = True
c.find('GetAccelFromString').ignore() # Not implemented anywere?