]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_combobox.i
reSWIGged
[wxWidgets.git] / wxPython / src / _combobox.i
index d56293c4681636a167edfa4be33a05a0e01317bc..e07864bca58595dfdbdcf7905a96d76b61026482 100644 (file)
@@ -58,8 +58,10 @@ public:
     %pythonAppend wxComboBox         "self._setOORInfo(self)"
     %pythonAppend wxComboBox()       ""
 
+    RefDoc(wxComboBox, ""); // turn it off for the ctors
+    
     DocCtorAStr(
-        wxComboBox(wxWindow* parent, wxWindowID id,
+        wxComboBox(wxWindow* parent, wxWindowID id=-1,
                    const wxString& value = wxPyEmptyString,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
@@ -80,7 +82,7 @@ public:
 
 
     DocDeclAStr(
-        bool, Create(wxWindow *parent, wxWindowID id,
+        bool, Create(wxWindow *parent, wxWindowID id=-1,
                      const wxString& value = wxPyEmptyString,
                      const wxPoint& pos = wxDefaultPosition,
                      const wxSize& size = wxDefaultSize,
@@ -92,7 +94,7 @@ public:
         "    Point pos=DefaultPosition, Size size=DefaultSize,\n" 
         "    List choices=[], long style=0, Validator validator=DefaultValidator,\n"
         "    String name=ChoiceNameStr) -> bool",
-        "Actually create the GUI Choice control for 2-phase creation");
+        "Actually create the GUI wxComboBox control for 2-phase creation");
     
 
     DocDeclStr(
@@ -136,10 +138,21 @@ public:
     
     DocDeclStr(
         void , SetSelection(int n),
-        "Selects the text between the two positions, in the combobox text field.");
+        "Sets the item at index 'n' to be the selected item.");
     
-    %name(SetMark) virtual void SetSelection(long from, long to);
+    DocDeclStrName(
+        virtual void , SetSelection(long from, long to),
+        "Selects the text between the two positions in the combobox text field.",
+        SetMark);    
 
+    DocDeclStr(
+        bool , SetStringSelection(const wxString& string),
+        "Select the item with the specifed string");
+    
+    DocDeclStr(
+        void , SetString(int n, const wxString& string),
+        "Set the label for the n'th item (zero based) in the list.");
+    
     DocDeclStr(
         virtual void , SetEditable(bool editable),
         "");
@@ -153,6 +166,8 @@ public:
         virtual void , Remove(long from, long to),
         "Removes the text between the two positions in the combobox text field.");
     
+    static wxVisualAttributes
+    GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 };
 
 //---------------------------------------------------------------------------