}
static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
- static const wxString wxPySpinCtrlNameStr(wxT(_T("wxSpinCtrl")));
+ static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
void wxSpinCtrl_SetSelection(wxSpinCtrl *self,long from,long to){
}
static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
static const wxString wxPySliderNameStr(wxSliderNameStr);
- static const wxString wxPyToggleButtonNameStr(wxT(_T("wxToggleButton")));
+ static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
-#ifdef __WXMAC__
+#if defined(__WXMAC__) || defined(__WXX11__)
// implement dummy classes and such for wxMac
#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
wxToggleButton(wxWindow *, wxWindowID, const wxString&,
const wxPoint&, const wxSize&, long,
const wxValidator&, const wxString&)
- { PyErr_SetNone(PyExc_NotImplementedError); }
+ { wxPyRaiseNotImplemented(); }
wxToggleButton()
- { PyErr_SetNone(PyExc_NotImplementedError); }
+ { wxPyRaiseNotImplemented(); }
};
#endif
#include <wx/listctrl.h>
- static const wxString wxPyListCtrlNameStr(wxT(_T("wxListCtrl")));
+ static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
// Python aware sorting function for wxPyListCtrl
static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
#include <wx/treectrl.h>
#include "wx/wxPython/pytree.h"
- static const wxString wxPyTreeCtrlNameStr(wxT(_T("wxTreeCtrl")));
+ static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){
if (!other) return False;
return *self == *other;
PyObject *resultobj;
wxListItem *arg1 = (wxListItem *) 0 ;
wxString *arg2 = (wxString *) 0 ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
+ {
+ arg2 = wxString_in_helper(obj1);
+ if (arg2 == NULL) SWIG_fail;
+ temp2 = True;
+ }
if (arg1) (arg1)->m_text = *arg2;
Py_INCREF(Py_None); resultobj = Py_None;
+ {
+ if (temp2)
+ delete arg2;
+ }
return resultobj;
fail:
+ {
+ if (temp2)
+ delete arg2;
+ }
return NULL;
}