]> git.saurik.com Git - wxWidgets.git/commitdiff
Added some aliases
authorRobin Dunn <robin@alldunn.com>
Fri, 28 Nov 2003 18:39:57 +0000 (18:39 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 28 Nov 2003 18:39:57 +0000 (18:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_colour.i
wxPython/src/_event.i
wxPython/src/_gdi_reverse.txt
wxPython/src/_gdicmn.i
wxPython/src/_misc_reverse.txt
wxPython/src/_settings.i

index d7557387a0b4512b63881fe69e0b23c0e9308d21..c6ad86aa897494a522a9c71caefb1ed6ecc86182 100644 (file)
@@ -81,5 +81,9 @@ public:
         }
 };
 
+%pythoncode {
+    Color = Colour
+    NamedColor = NamedColour    
+}
 //---------------------------------------------------------------------------
 
index 0dce8b8d8e8565af2704cfc6092dfc926782ce2c..f75e41cd95c58177c40975c165ba405d0db85f44 100644 (file)
@@ -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;
 
index a0ad34b0fae499e89d3354851e6a320bd0dea106..0aea27834198b9b74925cca61e8dcab3fcd64392 100644 (file)
@@ -1,2 +1,7 @@
 # Other names that need to be reverse-renamed for the old namespace
 
+
+Color
+NamedColor
+
+
index 7af7fe9386487dffd56a95c75028b97855758bde..1fd60f0b5adf050cc609f141d75de672a5ac75d9 100644 (file)
@@ -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.");
index 095e21a0a4088499fd6301ee56b0ff1e770f0eba..6a14fb5c81a08b8c4614d96b4bb5d69cd506440c 100644 (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 
index a745c7e26e129af0a6bce11b914f84b44e65c2f2..28ba50b29030087547d4bfc13b352f23740a1270 100644 (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