From: Robin Dunn Date: Fri, 28 Nov 2003 18:39:57 +0000 (+0000) Subject: Added some aliases X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/61c5a8acbe5d198708507dfc2789b8985d0c55c4 Added some aliases git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_colour.i b/wxPython/src/_colour.i index d7557387a0..c6ad86aa89 100644 --- a/wxPython/src/_colour.i +++ b/wxPython/src/_colour.i @@ -81,5 +81,9 @@ public: } }; +%pythoncode { + Color = Colour + NamedColor = NamedColour +} //--------------------------------------------------------------------------- diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index 0dce8b8d8e..f75e41cd95 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -450,7 +450,8 @@ public: // Get checkbox value bool IsChecked() const; - + %pythoncode { Checked = IsChecked } + // True if the listbox event was a selection. bool IsSelection() const; diff --git a/wxPython/src/_gdi_reverse.txt b/wxPython/src/_gdi_reverse.txt index a0ad34b0fa..0aea278341 100644 --- a/wxPython/src/_gdi_reverse.txt +++ b/wxPython/src/_gdi_reverse.txt @@ -1,2 +1,7 @@ # Other names that need to be reverse-renamed for the old namespace + +Color +NamedColor + + diff --git a/wxPython/src/_gdicmn.i b/wxPython/src/_gdicmn.i index 7af7fe9386..1fd60f0b5a 100644 --- a/wxPython/src/_gdicmn.i +++ b/wxPython/src/_gdicmn.i @@ -120,7 +120,8 @@ class wxSize public: %name(width) int x; %name(height)int y; - + %pythoncode { x = width; y = height } + DocCtorStr( wxSize(int w=0, int h=0), "Creates a size object."); diff --git a/wxPython/src/_misc_reverse.txt b/wxPython/src/_misc_reverse.txt index 095e21a0a4..6a14fb5c81 100644 --- a/wxPython/src/_misc_reverse.txt +++ b/wxPython/src/_misc_reverse.txt @@ -3,7 +3,9 @@ PyTimer PyDropTarget - +SystemSettings_GetSystemColour +SystemSettings_GetSystemFont +SystemSettings_GetSystemMetric # With the * on the end these will cause code to be added that diff --git a/wxPython/src/_settings.i b/wxPython/src/_settings.i index a745c7e26e..28ba50b290 100644 --- a/wxPython/src/_settings.i +++ b/wxPython/src/_settings.i @@ -174,6 +174,15 @@ public: }; + +%pythoncode { +%# backwards compatibility aliasses +SystemSettings_GetSystemColour = SystemSettings_GetColour +SystemSettings_GetSystemFont = SystemSettings_GetFont +SystemSettings_GetSystemMetric = SystemSettings_GetMetric +} + + //--------------------------------------------------------------------------- class wxSystemOptions : public wxObject