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:
@@ -81,5 +81,9 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
%pythoncode {
|
||||
Color = Colour
|
||||
NamedColor = NamedColour
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -1,2 +1,7 @@
|
||||
# Other names that need to be reverse-renamed for the old namespace
|
||||
|
||||
|
||||
Color
|
||||
NamedColor
|
||||
|
||||
|
||||
|
@@ -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),
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user