"Do the 2nd phase and create the GUI control.", "");
+ DocDeclStr(
+ int , GetAlignment() const,
+ "Get the control alignment (left/right/centre, top/bottom/centre)", "");
+
+
+// DocDeclStr(
+// static wxString , GetLabelText(const wxString& label),
+// "Get the string without mnemonic characters ('&')", "");
+
+
+ DocDeclStr(
+ wxString , GetLabelText() const,
+ "Get just the text of the label, without mnemonic characters ('&')", "");
+
+
+
DocDeclStr(
void , Command(wxCommandEvent& event),
"Simulates the effect of the user issuing a command to the item.
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %property(Alignment, GetAlignment, doc="See `GetAlignment`");
+ %property(Label, GetLabel, doc="See `GetLabel`");
+ %property(LabelText, GetLabelText, doc="See `GetLabelText`");
+
};
slightly more natural for controls which support multiple selection.", "");
+ %pythoncode {
+ def GetItems(self):
+ """Return a list of the strings in the control"""
+ return [self.GetString(i) for i in xrange(self.GetCount())]
+
+ def SetItems(self, items):
+ """Clear and set the strings in the control from a list"""
+ self.Clear()
+ for i in items:
+ self.Append(i)
+ }
+ %property(Items, GetItems, SetItems);
};