%newgroup;
+
// wxStatusBar: a window near the bottom of the frame used for status info
class wxStatusBar : public wxWindow
{
public:
- %addtofunc wxStatusBar "self._setOORInfo(self)"
- %addtofunc wxStatusBar() ""
+ %pythonAppend wxStatusBar "self._setOORInfo(self)"
+ %pythonAppend wxStatusBar() ""
wxStatusBar(wxWindow* parent, wxWindowID id = -1,
- long style = wxST_SIZEGRIP,
+ long style = wxDEFAULT_STATUSBAR_STYLE,
const wxString& name = wxPyStatusLineNameStr);
%name(PreStatusBar)wxStatusBar();
virtual void SetStatusWidths(int widths, const int* widths_field); // uses typemap in _toplvl.i
// Get the position and size of the field's internal bounding rectangle
- virtual bool GetFieldRect(int i, wxRect& rect) const;
-
+ %extend {
+ wxRect GetFieldRect(int i) {
+ wxRect r;
+ self->GetFieldRect(i, r);
+ return r;
+ }
+ }
+
// sets the minimal vertical size of the status bar
virtual void SetMinHeight(int height);