mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
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:
8
TODO.txt
8
TODO.txt
@@ -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.
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user