From 76b8fa1d2077661a6710f532eb141468ab36c1c8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 8 Sep 2006 01:08:36 +0000 Subject: [PATCH] More properties git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_constraints.i | 10 +++++++++ wxPython/src/_control.i | 7 +++++- wxPython/src/_cshelp.i | 4 ++++ wxPython/src/_dirctrl.i | 9 ++++++++ wxPython/src/_event.i | 14 +++++++++--- wxPython/src/_filesys.i | 6 +++++ wxPython/src/_gauge.i | 6 +++++ wxPython/src/_gbsizer.i | 5 ++++- wxPython/src/_hyperlink.i | 7 ++++++ wxPython/src/_icon.i | 11 +++++++++ wxPython/src/_image.i | 16 +++++++++++++ wxPython/src/_imaglist.i | 2 ++ wxPython/src/_intl.i | 7 ++++++ wxPython/src/_joystick.i | 38 +++++++++++++++++++++++++++++++ wxPython/src/_listbox.i | 2 ++ wxPython/src/_listctrl.i | 45 +++++++++++++++++++++++++++++++++++++ wxPython/src/_log.i | 9 +++++++- wxPython/src/_notebook.i | 1 + wxPython/src/_sizers.i | 5 +++++ wxPython/src/_vscroll.i | 2 ++ 20 files changed, 200 insertions(+), 6 deletions(-) diff --git a/wxPython/src/_constraints.i b/wxPython/src/_constraints.i index 1c0fd75f6d..2af1005bf3 100644 --- a/wxPython/src/_constraints.i +++ b/wxPython/src/_constraints.i @@ -231,6 +231,16 @@ button label.", ""); int , GetEdge(wxEdge which, wxWindow *thisWin, wxWindow *other) const, "Get the value of this edge or dimension, or if this\n" "is not determinable, -1.", ""); + + %property(Done, GetDone, SetDone, doc="See `GetDone` and `SetDone`"); + %property(Margin, GetMargin, SetMargin, doc="See `GetMargin` and `SetMargin`"); + %property(MyEdge, GetMyEdge, doc="See `GetMyEdge`"); + %property(OtherEdge, GetOtherEdge, doc="See `GetOtherEdge`"); + %property(OtherWindow, GetOtherWindow, doc="See `GetOtherWindow`"); + %property(Percent, GetPercent, doc="See `GetPercent`"); + %property(Relationship, GetRelationship, SetRelationship, doc="See `GetRelationship` and `SetRelationship`"); + %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`"); + }; diff --git a/wxPython/src/_control.i b/wxPython/src/_control.i index 10b7b43f45..d755d75270 100644 --- a/wxPython/src/_control.i +++ b/wxPython/src/_control.i @@ -288,7 +288,12 @@ slightly more natural for controls which support multiple selection.", ""); for i in items: self.Append(i) } - %property(Items, GetItems, SetItems); + + %property(Count, GetCount, doc="See `GetCount`"); + %property(Items, GetItems, SetItems, doc="See `GetItems` and `SetItems`"); + %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + %property(StringSelection, GetStringSelection, SetStringSelection, doc="See `GetStringSelection` and `SetStringSelection`"); + %property(Strings, GetStrings, doc="See `GetStrings`"); }; diff --git a/wxPython/src/_cshelp.i b/wxPython/src/_cshelp.i index 9db181dfde..2e4b493f65 100644 --- a/wxPython/src/_cshelp.i +++ b/wxPython/src/_cshelp.i @@ -119,6 +119,10 @@ appropriately.", ""); void , SetOrigin(Origin origin), "", ""); + %property(Link, GetLink, SetLink, doc="See `GetLink` and `SetLink`"); + %property(Origin, GetOrigin, SetOrigin, doc="See `GetOrigin` and `SetOrigin`"); + %property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`"); + %property(Target, GetTarget, SetTarget, doc="See `GetTarget` and `SetTarget`"); }; //--------------------------------------------------------------------------- diff --git a/wxPython/src/_dirctrl.i b/wxPython/src/_dirctrl.i index 0486a1bf4c..a6084a88c6 100644 --- a/wxPython/src/_dirctrl.i +++ b/wxPython/src/_dirctrl.i @@ -134,6 +134,15 @@ leaf), done is set to True. // Collapse & expand the tree, thus re-creating it from scratch: virtual void ReCreateTree(); + %property(DefaultPath, GetDefaultPath, SetDefaultPath, doc="See `GetDefaultPath` and `SetDefaultPath`"); + %property(FilePath, GetFilePath, doc="See `GetFilePath`"); + %property(Filter, GetFilter, SetFilter, doc="See `GetFilter` and `SetFilter`"); + %property(FilterIndex, GetFilterIndex, SetFilterIndex, doc="See `GetFilterIndex` and `SetFilterIndex`"); + %property(FilterListCtrl, GetFilterListCtrl, doc="See `GetFilterListCtrl`"); + %property(Path, GetPath, SetPath, doc="See `GetPath` and `SetPath`"); + %property(RootId, GetRootId, doc="See `GetRootId`"); + %property(ShowHidden, GetShowHidden, ShowHidden, doc="See `GetShowHidden` and `ShowHidden`"); + %property(TreeCtrl, GetTreeCtrl, doc="See `GetTreeCtrl`"); }; diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index bd71cffdb5..6d06bd26e9 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -1327,7 +1327,8 @@ Note that in Unicode build, the returned value is meaningful only if the user entered a character that can be represented in current locale's default charset. You can obtain the corresponding Unicode character using `GetUnicodeKey`.", ""); - %pythoncode { KeyCode = GetKeyCode } + +// %pythoncode { KeyCode = GetKeyCode } this will be hidden by the property %extend { @@ -1408,6 +1409,15 @@ public: wxUint32 m_rawCode; wxUint32 m_rawFlags; + + %property(KeyCode, GetKeyCode, doc="See `GetKeyCode`"); + %property(Modifiers, GetModifiers, doc="See `GetModifiers`"); + %property(Position, GetPosition, doc="See `GetPosition`"); + %property(RawKeyCode, GetRawKeyCode, doc="See `GetRawKeyCode`"); + %property(RawKeyFlags, GetRawKeyFlags, doc="See `GetRawKeyFlags`"); + %property(UnicodeKey, GetUnicodeKey, SetUnicodeKey, doc="See `GetUnicodeKey` and `SetUnicodeKey`"); + %property(X, GetX, doc="See `GetX`"); + %property(Y, GetY, doc="See `GetY`"); }; //--------------------------------------------------------------------------- @@ -1811,8 +1821,6 @@ code wishes to force the application to exit, and so this function must be called to check this.", ""); %property(LoggingOff, GetLoggingOff, SetLoggingOff, doc="See `GetLoggingOff` and `SetLoggingOff`"); - %property(Veto, GetVeto, doc="See `GetVeto`"); - }; diff --git a/wxPython/src/_filesys.i b/wxPython/src/_filesys.i index 4291d52077..be1b01e81a 100644 --- a/wxPython/src/_filesys.i +++ b/wxPython/src/_filesys.i @@ -38,6 +38,8 @@ public: ~wxFSFile(); wxInputStream *GetStream(); + void DetachStream(); + const wxString& GetMimeType(); const wxString& GetLocation(); const wxString& GetAnchor(); @@ -158,6 +160,10 @@ public: static void AddHandler(wxFileSystemHandler *handler); %cleardisown(wxFileSystemHandler *handler); + // Removes FS handler + %newobject RemoveHandler; + static wxFileSystemHandler* RemoveHandler(wxFileSystemHandler *handler); + static void CleanUpHandlers(); // Returns the file URL for a native path diff --git a/wxPython/src/_gauge.i b/wxPython/src/_gauge.i index 942a1bc04e..71302de644 100644 --- a/wxPython/src/_gauge.i +++ b/wxPython/src/_gauge.i @@ -71,6 +71,12 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + + %property(BezelFace, GetBezelFace, SetBezelFace, doc="See `GetBezelFace` and `SetBezelFace`"); + %property(Range, GetRange, SetRange, doc="See `GetRange` and `SetRange`"); + %property(ShadowWidth, GetShadowWidth, SetShadowWidth, doc="See `GetShadowWidth` and `SetShadowWidth`"); + %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`"); + }; //--------------------------------------------------------------------------- diff --git a/wxPython/src/_gbsizer.i b/wxPython/src/_gbsizer.i index 412ad058e5..19a31686ea 100644 --- a/wxPython/src/_gbsizer.i +++ b/wxPython/src/_gbsizer.i @@ -393,6 +393,10 @@ is successful and after the next Layout() the item will be resized. void , SetGBSizer(wxGridBagSizer* sizer), "Set the sizer this item is a member of.", ""); + %property(EndPos, GetEndPos, doc="See `GetEndPos`"); + %property(GBSizer, GetGBSizer, SetGBSizer, doc="See `GetGBSizer` and `SetGBSizer`"); + %property(Pos, GetPos, SetPos, doc="See `GetPos` and `SetPos`"); + %property(Span, GetSpan, SetSpan, doc="See `GetSpan` and `SetSpan`"); }; @@ -599,7 +603,6 @@ for intersection, for example it may be the item we are checking the position of.", "", CheckForIntersectionPos); - }; diff --git a/wxPython/src/_hyperlink.i b/wxPython/src/_hyperlink.i index eb4e898fe5..d84ab7ce64 100644 --- a/wxPython/src/_hyperlink.i +++ b/wxPython/src/_hyperlink.i @@ -81,6 +81,11 @@ public: void SetVisited(bool visited = true); bool GetVisited() const; + %property(HoverColour, GetHoverColour, SetHoverColour, doc="See `GetHoverColour` and `SetHoverColour`"); + %property(NormalColour, GetNormalColour, SetNormalColour, doc="See `GetNormalColour` and `SetNormalColour`"); + %property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`"); + %property(Visited, GetVisited, SetVisited, doc="See `GetVisited` and `SetVisited`"); + %property(VisitedColour, GetVisitedColour, SetVisitedColour, doc="See `GetVisitedColour` and `SetVisitedColour`"); }; @@ -101,6 +106,8 @@ public: // that the user clicked on. wxString GetURL() const; void SetURL(const wxString &url); + + %property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`"); }; diff --git a/wxPython/src/_icon.i b/wxPython/src/_icon.i index d117a99ff6..2f91e9371b 100644 --- a/wxPython/src/_icon.i +++ b/wxPython/src/_icon.i @@ -78,6 +78,11 @@ public: void CopyFromBitmap(const wxBitmap& bmp); %pythoncode { def __nonzero__(self): return self.Ok() } + + %property(Depth, GetDepth, SetDepth, doc="See `GetDepth` and `SetDepth`"); + %property(Height, GetHeight, SetHeight, doc="See `GetHeight` and `SetHeight`"); + %property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`"); + }; //--------------------------------------------------------------------------- @@ -124,6 +129,10 @@ public: #endif } } + + %property(FileName, GetFileName, SetFileName, doc="See `GetFileName` and `SetFileName`"); + %property(Index, GetIndex, SetIndex, doc="See `GetIndex` and `SetIndex`"); + }; @@ -159,6 +168,8 @@ public: // returns the icon with size wxSYS_ICON_[XY]; if no such icon exists, // returns the first icon in the bundle const wxIcon& GetIcon( const wxSize& size ) const; + + %property(Icon, GetIcon, doc="See `GetIcon`"); }; //--------------------------------------------------------------------------- diff --git a/wxPython/src/_image.i b/wxPython/src/_image.i index c183f2c9f2..f083ba0d17 100644 --- a/wxPython/src/_image.i +++ b/wxPython/src/_image.i @@ -54,6 +54,11 @@ public: void SetExtension(const wxString& extension); void SetType(long type); void SetMimeType(const wxString& mimetype); + + %property(Extension, GetExtension, SetExtension, doc="See `GetExtension` and `SetExtension`"); + %property(MimeType, GetMimeType, SetMimeType, doc="See `GetMimeType` and `SetMimeType`"); + %property(Name, GetName, SetName, doc="See `GetName` and `SetName`"); + %property(Type, GetType, SetType, doc="See `GetType` and `SetType`"); }; @@ -983,6 +988,17 @@ range -1.0..1.0 where -1.0 is -360 degrees and 1.0 is 360 degrees", ""); %pythoncode { def __nonzero__(self): return self.Ok() } + + %property(AlphaBuffer, GetAlphaBuffer, SetAlphaBuffer, doc="See `GetAlphaBuffer` and `SetAlphaBuffer`"); + %property(AlphaData, GetAlphaData, SetAlphaData, doc="See `GetAlphaData` and `SetAlphaData`"); + %property(Data, GetData, SetData, doc="See `GetData` and `SetData`"); + %property(DataBuffer, GetDataBuffer, SetDataBuffer, doc="See `GetDataBuffer` and `SetDataBuffer`"); + %property(Height, GetHeight, doc="See `GetHeight`"); + %property(MaskBlue, GetMaskBlue, doc="See `GetMaskBlue`"); + %property(MaskGreen, GetMaskGreen, doc="See `GetMaskGreen`"); + %property(MaskRed, GetMaskRed, doc="See `GetMaskRed`"); + %property(Size, GetSize, doc="See `GetSize`"); + %property(Width, GetWidth, doc="See `GetWidth`"); }; diff --git a/wxPython/src/_imaglist.i b/wxPython/src/_imaglist.i index fafc8ae3e2..d048849da2 100644 --- a/wxPython/src/_imaglist.i +++ b/wxPython/src/_imaglist.i @@ -66,6 +66,8 @@ public: void, GetSize(int index, int& OUTPUT, int& OUTPUT), "GetSize(index) -> (width,height)"); + %property(ImageCount, GetImageCount, doc="See `GetImageCount`"); + %property(Size, GetSize, doc="See `GetSize`"); }; //--------------------------------------------------------------------------- diff --git a/wxPython/src/_intl.i b/wxPython/src/_intl.i index 4b992086ee..198fc8bfc2 100644 --- a/wxPython/src/_intl.i +++ b/wxPython/src/_intl.i @@ -466,6 +466,13 @@ public: // Returns the current short name for the locale const wxString& GetName() const; + + %property(CanonicalName, GetCanonicalName, doc="See `GetCanonicalName`"); + %property(Language, GetLanguage, doc="See `GetLanguage`"); + %property(Locale, GetLocale, doc="See `GetLocale`"); + %property(Name, GetName, doc="See `GetName`"); + %property(String, GetString, doc="See `GetString`"); + %property(SysName, GetSysName, doc="See `GetSysName`"); }; //--------------------------------------------------------------------------- diff --git a/wxPython/src/_joystick.i b/wxPython/src/_joystick.i index 252208e9e5..88bb207276 100644 --- a/wxPython/src/_joystick.i +++ b/wxPython/src/_joystick.i @@ -158,6 +158,38 @@ public: bool ReleaseCapture(); %pythoncode { def __nonzero__(self): return self.IsOk() } + + %property(ButtonState, GetButtonState, doc="See `GetButtonState`"); + %property(ManufacturerId, GetManufacturerId, doc="See `GetManufacturerId`"); + %property(MaxAxes, GetMaxAxes, doc="See `GetMaxAxes`"); + %property(MaxButtons, GetMaxButtons, doc="See `GetMaxButtons`"); + %property(MovementThreshold, GetMovementThreshold, SetMovementThreshold, doc="See `GetMovementThreshold` and `SetMovementThreshold`"); + %property(NumberAxes, GetNumberAxes, doc="See `GetNumberAxes`"); + %property(NumberButtons, GetNumberButtons, doc="See `GetNumberButtons`"); + %property(NumberJoysticks, GetNumberJoysticks, doc="See `GetNumberJoysticks`"); + %property(POVCTSPosition, GetPOVCTSPosition, doc="See `GetPOVCTSPosition`"); + %property(POVPosition, GetPOVPosition, doc="See `GetPOVPosition`"); + %property(PollingMax, GetPollingMax, doc="See `GetPollingMax`"); + %property(PollingMin, GetPollingMin, doc="See `GetPollingMin`"); + %property(Position, GetPosition, doc="See `GetPosition`"); + %property(ProductId, GetProductId, doc="See `GetProductId`"); + %property(ProductName, GetProductName, doc="See `GetProductName`"); + %property(RudderMax, GetRudderMax, doc="See `GetRudderMax`"); + %property(RudderMin, GetRudderMin, doc="See `GetRudderMin`"); + %property(RudderPosition, GetRudderPosition, doc="See `GetRudderPosition`"); + %property(UMax, GetUMax, doc="See `GetUMax`"); + %property(UMin, GetUMin, doc="See `GetUMin`"); + %property(UPosition, GetUPosition, doc="See `GetUPosition`"); + %property(VMax, GetVMax, doc="See `GetVMax`"); + %property(VMin, GetVMin, doc="See `GetVMin`"); + %property(VPosition, GetVPosition, doc="See `GetVPosition`"); + %property(XMax, GetXMax, doc="See `GetXMax`"); + %property(XMin, GetXMin, doc="See `GetXMin`"); + %property(YMax, GetYMax, doc="See `GetYMax`"); + %property(YMin, GetYMin, doc="See `GetYMin`"); + %property(ZMax, GetZMax, doc="See `GetZMax`"); + %property(ZMin, GetZMin, doc="See `GetZMin`"); + %property(ZPosition, GetZPosition, doc="See `GetZPosition`"); }; @@ -214,6 +246,12 @@ public: m_buttonState = property(GetButtonState, SetButtonState) m_joyStick = property(GetJoystick, SetJoystick) } + + %property(ButtonChange, GetButtonChange, SetButtonChange, doc="See `GetButtonChange` and `SetButtonChange`"); + %property(ButtonState, GetButtonState, SetButtonState, doc="See `GetButtonState` and `SetButtonState`"); + %property(Joystick, GetJoystick, SetJoystick, doc="See `GetJoystick` and `SetJoystick`"); + %property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`"); + %property(ZPosition, GetZPosition, SetZPosition, doc="See `GetZPosition` and `SetZPosition`"); }; diff --git a/wxPython/src/_listbox.i b/wxPython/src/_listbox.i index df526d3c42..22960358a4 100644 --- a/wxPython/src/_listbox.i +++ b/wxPython/src/_listbox.i @@ -165,6 +165,8 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + + %property(Selections, GetSelections, doc="See `GetSelections`"); }; diff --git a/wxPython/src/_listctrl.i b/wxPython/src/_listctrl.i index 00b88bb0f5..a982f7154b 100644 --- a/wxPython/src/_listctrl.i +++ b/wxPython/src/_listctrl.i @@ -176,6 +176,10 @@ public: %pythonAppend Destroy "args[0].thisown = 0" %extend { void Destroy() { delete self; } } + + %property(BackgroundColour, GetBackgroundColour, SetBackgroundColour, doc="See `GetBackgroundColour` and `SetBackgroundColour`"); + %property(Font, GetFont, SetFont, doc="See `GetFont` and `SetFont`"); + %property(TextColour, GetTextColour, SetTextColour, doc="See `GetTextColour` and `SetTextColour`"); }; @@ -245,6 +249,19 @@ public: int m_format; // left, right, centre int m_width; // width of column + %property(Align, GetAlign, SetAlign, doc="See `GetAlign` and `SetAlign`"); + %property(Attributes, GetAttributes, doc="See `GetAttributes`"); + %property(BackgroundColour, GetBackgroundColour, SetBackgroundColour, doc="See `GetBackgroundColour` and `SetBackgroundColour`"); + %property(Column, GetColumn, SetColumn, doc="See `GetColumn` and `SetColumn`"); + %property(Data, GetData, SetData, doc="See `GetData` and `SetData`"); + %property(Font, GetFont, SetFont, doc="See `GetFont` and `SetFont`"); + %property(Id, GetId, SetId, doc="See `GetId` and `SetId`"); + %property(Image, GetImage, SetImage, doc="See `GetImage` and `SetImage`"); + %property(Mask, GetMask, SetMask, doc="See `GetMask` and `SetMask`"); + %property(State, GetState, SetState, doc="See `GetState` and `SetState`"); + %property(Text, GetText, SetText, doc="See `GetText` and `SetText`"); + %property(TextColour, GetTextColour, SetTextColour, doc="See `GetTextColour` and `SetTextColour`"); + %property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`"); }; @@ -285,6 +302,20 @@ public: // was label editing canceled? (for wxEVT_COMMAND_LIST_END_LABEL_EDIT only) bool IsEditCancelled() const; void SetEditCanceled(bool editCancelled); + + %property(CacheFrom, GetCacheFrom, doc="See `GetCacheFrom`"); + %property(CacheTo, GetCacheTo, doc="See `GetCacheTo`"); + %property(Column, GetColumn, doc="See `GetColumn`"); + %property(Data, GetData, doc="See `GetData`"); + %property(Image, GetImage, doc="See `GetImage`"); + %property(Index, GetIndex, doc="See `GetIndex`"); + %property(Item, GetItem, doc="See `GetItem`"); + %property(KeyCode, GetKeyCode, doc="See `GetKeyCode`"); + %property(Label, GetLabel, doc="See `GetLabel`"); + %property(Mask, GetMask, doc="See `GetMask`"); + %property(Point, GetPoint, doc="See `GetPoint`"); + %property(Text, GetText, doc="See `GetText`"); + }; /* List control event types */ @@ -814,6 +845,18 @@ any.", "", static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + + %property(ColumnCount, GetColumnCount, doc="See `GetColumnCount`"); + %property(CountPerPage, GetCountPerPage, doc="See `GetCountPerPage`"); + %property(EditControl, GetEditControl, doc="See `GetEditControl`"); + %property(FocusedItem, GetFocusedItem, doc="See `GetFocusedItem`"); + %property(ImageList, GetImageList, SetImageList, doc="See `GetImageList` and `SetImageList`"); + %property(ItemCount, GetItemCount, SetItemCount, doc="See `GetItemCount` and `SetItemCount`"); + %property(MainWindow, GetMainWindow, doc="See `GetMainWindow`"); + %property(SelectedItemCount, GetSelectedItemCount, doc="See `GetSelectedItemCount`"); + %property(TextColour, GetTextColour, SetTextColour, doc="See `GetTextColour` and `SetTextColour`"); + %property(TopItem, GetTopItem, doc="See `GetTopItem`"); + %property(ViewRect, GetViewRect, doc="See `GetViewRect`"); }; @@ -866,6 +909,8 @@ public: void SetColumnImage(int col, int image); void ClearColumnImage(int col); + + %property(FocusedItem, GetFocusedItem, doc="See `GetFocusedItem`"); }; diff --git a/wxPython/src/_log.i b/wxPython/src/_log.i index f02bf3c39c..f02fdb8467 100644 --- a/wxPython/src/_log.i +++ b/wxPython/src/_log.i @@ -200,6 +200,9 @@ public: wxLog *GetOldLog() const; bool IsPassingMessages() const; void PassMessages(bool bDoPass); + + %property(Frame, GetFrame, doc="See `GetFrame`"); + %property(OldLog, GetOldLog, doc="See `GetOldLog`"); }; @@ -211,6 +214,8 @@ public: void PassMessages(bool bDoPass); bool IsPassingMessages(); wxLog *GetOldLog(); + + %property(OldLog, GetOldLog, doc="See `GetOldLog`"); }; // log everything to a buffer @@ -220,11 +225,13 @@ public: wxLogBuffer(); // get the string contents with all messages logged - const wxString& GetBuffer() const { return m_str; } + const wxString& GetBuffer() const; // show the buffer contents to the user in the best possible way (this uses // wxMessageOutputMessageBox) and clear it virtual void Flush(); + + %property(Buffer, GetBuffer, doc="See `GetBuffer`"); }; diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index 77c6a4cb27..e62c154d4f 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -374,6 +374,7 @@ public: const wxString& name = wxPyEmptyString); wxListView* GetListView(); + %property(ListView, GetListView, doc="See `GetListView`"); }; diff --git a/wxPython/src/_sizers.i b/wxPython/src/_sizers.i index ad35988648..0648544543 100644 --- a/wxPython/src/_sizers.i +++ b/wxPython/src/_sizers.i @@ -1245,6 +1245,11 @@ define extra space between all children.", ""); cols = (nitems + rows - 1) / rows return (rows, cols) } + + %property(Cols, GetCols, SetCols, doc="See `GetCols` and `SetCols`"); + %property(HGap, GetHGap, SetHGap, doc="See `GetHGap` and `SetHGap`"); + %property(Rows, GetRows, SetRows, doc="See `GetRows` and `SetRows`"); + %property(VGap, GetVGap, SetVGap, doc="See `GetVGap` and `SetVGap`"); }; //--------------------------------------------------------------------------- diff --git a/wxPython/src/_vscroll.i b/wxPython/src/_vscroll.i index ce66f5cd23..f1d3b7705f 100644 --- a/wxPython/src/_vscroll.i +++ b/wxPython/src/_vscroll.i @@ -596,6 +596,8 @@ public: wxFileSystem& GetFileSystem(); void OnLinkClicked(size_t n, const wxHtmlLinkInfo& link); + + %property(FileSystem, GetFileSystem, doc="See `GetFileSystem`"); }; -- 2.47.2