wxPyValidator* ptr = NULL;
wxPyValidator* self = (wxPyValidator*)this;
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if (self->m_myInst.findCallback("Clone")) {
PyObject* ro;
ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
Py_DECREF(ro);
}
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
// This is very dangerous!!! But is the only way I could find
// to squash a memory leak. Currently it is okay, but if the
wxLayoutConstraints * GetConstraints();
wxEvtHandler* GetEventHandler();
- wxFont& GetFont();
+ wxFont GetFont();
wxColour GetForegroundColour();
wxWindow * GetGrandParent();
%addmethods {
%name(SetClientSizeWH)void SetClientSize(int width, int height);
void SetClientSize(const wxSize& size);
//void SetPalette(wxPalette* palette);
- void SetCursor(const wxCursor&cursor);
+ void SetCursor(const wxCursor& cursor);
void SetEventHandler(wxEvtHandler* handler);
void SetExtraStyle(long exStyle);
void SetTitle(const wxString& title);
- bool Show(bool show);
+ bool Show(bool show=TRUE);
bool TransferDataFromWindow();
bool TransferDataToWindow();
bool Validate();
void SetAcceleratorTable(const wxAcceleratorTable& accel);
wxAcceleratorTable *GetAcceleratorTable();
+
+#ifdef __WXMSW__
+ // A way to do the native draw first... Too bad it isn't in wxGTK too.
+ void OnPaint(wxPaintEvent& event);
+#endif
+
+ wxButton* GetDefaultItem();
+ void SetDefaultItem(wxButton *btn);
};
const char* name = "panel");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "XXX:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPrePanel:val._setOORInfo(val)"
void InitDialog();
- wxButton* GetDefaultItem();
- void SetDefaultItem(wxButton *btn);
};
// wxOwnerDrawn methods
#ifdef __WXMSW__
void SetFont(const wxFont& font);
- wxFont& GetFont();
+ wxFont GetFont();
void SetTextColour(const wxColour& colText);
wxColour GetTextColour();
void SetBackgroundColour(const wxColour& colBack);
void SetBitmaps(const wxBitmap& bmpChecked,
const wxBitmap& bmpUnchecked = wxNullBitmap);
void SetBitmap(const wxBitmap& bmpChecked);
- const wxBitmap& GetBitmap(bool bChecked = TRUE);
+ wxBitmap GetBitmap(bool bChecked = TRUE);
void SetMarginWidth(int nWidth);
int GetMarginWidth();
static int GetDefaultMarginWidth();