Added some aliases

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-11-28 18:39:57 +00:00
parent 80a81a12af
commit 61c5a8acbe
6 changed files with 25 additions and 3 deletions

View File

@@ -81,5 +81,9 @@ public:
}
};
%pythoncode {
Color = Colour
NamedColor = NamedColour
}
//---------------------------------------------------------------------------

View File

@@ -450,6 +450,7 @@ public:
// Get checkbox value
bool IsChecked() const;
%pythoncode { Checked = IsChecked }
// True if the listbox event was a selection.
bool IsSelection() const;

View File

@@ -1,2 +1,7 @@
# Other names that need to be reverse-renamed for the old namespace
Color
NamedColor

View File

@@ -120,6 +120,7 @@ class wxSize
public:
%name(width) int x;
%name(height)int y;
%pythoncode { x = width; y = height }
DocCtorStr(
wxSize(int w=0, int h=0),

View File

@@ -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

View File

@@ -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