mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Some cleanup and fixes for const-ness related things
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,7 +48,7 @@ def run():
|
||||
addTransferAnnotations(c, 'menuItem')
|
||||
addTransferAnnotations(c, 'subMenu')
|
||||
c.find('AppendSubMenu.submenu').transfer = True
|
||||
c.find('GetMenuItems').overloads[0].ignore()
|
||||
c.find('GetMenuItems').ignore() # keep the overload, but not the first one.
|
||||
|
||||
c.addPyMethod('AppendMenu', '(self, id, item, subMenu, help="")', deprecated=True,
|
||||
body='return self.Append(id, item, subMenu, help)')
|
||||
|
||||
@@ -52,6 +52,7 @@ def run():
|
||||
self->SetBackgroundColour(*colour);
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('GetFont').type = 'wxFont*'
|
||||
c.find('GetFont').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
@@ -60,11 +61,13 @@ def run():
|
||||
return &wxNullFont;
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('SetFont').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
self->SetFont(*font);
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('GetMarginWidth').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
return self->GetMarginWidth();
|
||||
@@ -72,11 +75,13 @@ def run():
|
||||
return -1;
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('SetMarginWidth').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
self->SetMarginWidth(width);
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('GetTextColour').type = 'wxColour*'
|
||||
c.find('GetTextColour').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
@@ -85,6 +90,7 @@ def run():
|
||||
return &wxNullColour;
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('SetTextColour').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
self->SetTextColour(*colour);
|
||||
@@ -99,6 +105,7 @@ def run():
|
||||
self->SetBitmap(*bmp); // no checked arg in this case
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.find('SetBitmaps').setCppCode("""\
|
||||
#ifdef __WXMSW__
|
||||
self->SetBitmaps(*checked, *unchecked);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
|
||||
wxUIntPtr wxPyGetWinHandle(wxWindow* win)
|
||||
wxUIntPtr wxPyGetWinHandle(const wxWindow* win)
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
return (wxUIntPtr)win->GetHandle();
|
||||
|
||||
Reference in New Issue
Block a user