void AssignFrom(const wxListItemAttr& source);
- %pythonAppend Destroy "args[0].thisown = 0"
+ %pythonPrepend Destroy "args[0].this.own(False)"
%extend { void Destroy() { delete self; } }
%property(BackgroundColour, GetBackgroundColour, SetBackgroundColour, doc="See `GetBackgroundColour` and `SetBackgroundColour`");
// wxListItem: the item or column info, used to exchange data with wxListCtrl
class wxListItem : public wxObject {
public:
+ // turn off this typemap
+ %typemap(out) wxListItem*;
+
wxListItem();
~wxListItem();
+ // Turn it back on again
+ %typemap(out) wxListItem* { $result = wxPyMake_wxObject($1, $owner); }
+
// resetting
void Clear();
void ClearAttributes();
-
+// NOTE: The following option is set in _settings.i
+// # Until the new native control for wxMac is up to par, still use the generic one.
+// SystemOptions.SetOptionInt("mac.listctrl.always_use_generic", 1)
MustHaveApp(wxPyListCtrl);
%rename(ListCtrl) wxPyListCtrl;
class wxPyListCtrl : public wxControl {
public:
+ // turn off this typemap
+ %typemap(out) wxPyListCtrl*;
%pythonAppend wxPyListCtrl "self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl)"
%pythonAppend wxPyListCtrl() ""
const wxString& name = wxPyListCtrlNameStr);
%RenameCtor(PreListCtrl, wxPyListCtrl());
+ // Turn it back on again
+ %typemap(out) wxPyListCtrl* { $result = wxPyMake_wxObject($1, $owner); }
+
bool Create(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,