From: Robin Dunn Date: Fri, 22 Sep 2006 21:46:26 +0000 (+0000) Subject: add some properties X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/777e547f2cf471e683abd71c3d5f0e0f699da176 add some properties git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/aui.i b/wxPython/src/aui.i index 68202adbf1..75b34fbef7 100755 --- a/wxPython/src/aui.i +++ b/wxPython/src/aui.i @@ -251,7 +251,7 @@ The following example shows a simple implementation that utilizes //--------------------------------------------------------------------------- %{ -// A wxDocArt lcass that knows how to forward virtuals to Python methods +// A wxDocArt class that knows how to forward virtuals to Python methods class wxPyDockArt : public wxDefaultDockArt { wxPyDockArt() : wxDefaultDockArt() {} @@ -428,6 +428,43 @@ class wxPyDockArt : public wxDefaultDockArt }; +//--------------------------------------------------------------------------- + +%extend wxAuiMultiNotebook { + %property(PageCount, GetPageCount, doc="See `GetPageCount`"); + %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); +} + + +%extend wxAuiNotebookEvent { + %property(OldSelection, GetOldSelection, SetOldSelection, doc="See `GetOldSelection` and `SetOldSelection`"); + %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); +} + + +%extend wxAuiTabContainer { + %property(ActivePage, GetActivePage, SetActivePage, doc="See `GetActivePage` and `SetActivePage`"); + %property(PageCount, GetPageCount, doc="See `GetPageCount`"); + %property(Pages, GetPages, doc="See `GetPages`"); +} + + +%extend wxFrameManager { + %property(AllPanes, GetAllPanes, doc="See `GetAllPanes`"); + %property(ArtProvider, GetArtProvider, SetArtProvider, doc="See `GetArtProvider` and `SetArtProvider`"); + %property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`"); + %property(ManagedWindow, GetManagedWindow, SetManagedWindow, doc="See `GetManagedWindow` and `SetManagedWindow`"); +} + + +%extend wxFrameManagerEvent { + %property(Button, GetButton, SetButton, doc="See `GetButton` and `SetButton`"); + %property(DC, GetDC, SetDC, doc="See `GetDC` and `SetDC`"); + %property(Pane, GetPane, SetPane, doc="See `GetPane` and `SetPane`"); +} + + +//--------------------------------------------------------------------------- #undef wxUSE_AUI #undef WXDLLIMPEXP_AUI diff --git a/wxPython/src/calendar.i b/wxPython/src/calendar.i index 4afb971419..1ebf884e2b 100644 --- a/wxPython/src/calendar.i +++ b/wxPython/src/calendar.i @@ -103,6 +103,12 @@ public: wxColour GetBorderColour() const; wxFont GetFont() const; wxCalendarDateBorder GetBorder() const; + + %property(BackgroundColour, GetBackgroundColour, SetBackgroundColour, doc="See `GetBackgroundColour` and `SetBackgroundColour`"); + %property(Border, GetBorder, SetBorder, doc="See `GetBorder` and `SetBorder`"); + %property(BorderColour, GetBorderColour, SetBorderColour, doc="See `GetBorderColour` and `SetBorderColour`"); + %property(Font, GetFont, SetFont, doc="See `GetFont` and `SetFont`"); + %property(TextColour, GetTextColour, SetTextColour, doc="See `GetTextColour` and `SetTextColour`"); }; //--------------------------------------------------------------------------- @@ -126,6 +132,8 @@ public: """returns datetime.date object""" return _wxdate2pydate(self.GetDate()) } + + %property(WeekDay, GetWeekDay, SetWeekDay, doc="See `GetWeekDay` and `SetWeekDay`"); }; @@ -449,6 +457,18 @@ The result codes are: """returns datetime.date object""" return _wxdate2pydate(self.GetUpperDateLimit()) } + + %property(Date, GetDate, SetDate, doc="See `GetDate` and `SetDate`"); + %property(HeaderColourBg, GetHeaderColourBg, doc="See `GetHeaderColourBg`"); + %property(HeaderColourFg, GetHeaderColourFg, doc="See `GetHeaderColourFg`"); + %property(HighlightColourBg, GetHighlightColourBg, doc="See `GetHighlightColourBg`"); + %property(HighlightColourFg, GetHighlightColourFg, doc="See `GetHighlightColourFg`"); + %property(HolidayColourBg, GetHolidayColourBg, doc="See `GetHolidayColourBg`"); + %property(HolidayColourFg, GetHolidayColourFg, doc="See `GetHolidayColourFg`"); + %property(LowerDateLimit, GetLowerDateLimit, SetLowerDateLimit, doc="See `GetLowerDateLimit` and `SetLowerDateLimit`"); + %property(MonthControl, GetMonthControl, doc="See `GetMonthControl`"); + %property(UpperDateLimit, GetUpperDateLimit, SetUpperDateLimit, doc="See `GetUpperDateLimit` and `SetUpperDateLimit`"); + %property(YearControl, GetYearControl, doc="See `GetYearControl`"); }; %pythoncode { diff --git a/wxPython/src/gtk/_gdi.py b/wxPython/src/gtk/_gdi.py index bb9c661996..d2882c2a47 100644 --- a/wxPython/src/gtk/_gdi.py +++ b/wxPython/src/gtk/_gdi.py @@ -3647,7 +3647,7 @@ class DC(_core.Object): GetMultiLineTextExtent(wxString string, Font font=None) -> (width, height, lineHeight) - Get the width, height, decent and leading of the text using the + Get the width, height, and line height of the text using the current or specified font. Works for single as well as multi-line strings. """ diff --git a/wxPython/src/gtk/aui.py b/wxPython/src/gtk/aui.py index 6bf815bac6..aea724538e 100644 --- a/wxPython/src/gtk/aui.py +++ b/wxPython/src/gtk/aui.py @@ -1170,6 +1170,10 @@ class FrameManager(_core.EvtHandler): GetFrame = wx._deprecated(GetManagedWindow, "GetFrame is deprecated, use `GetManagedWindow` instead.") + AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") + ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") _aui.FrameManager_swigregister(FrameManager) class FrameManagerEvent(_core.Event): @@ -1228,6 +1232,9 @@ class FrameManagerEvent(_core.Event): veto_flag = property(_aui.FrameManagerEvent_veto_flag_get, _aui.FrameManagerEvent_veto_flag_set) canveto_flag = property(_aui.FrameManagerEvent_canveto_flag_get, _aui.FrameManagerEvent_canveto_flag_set) dc = property(_aui.FrameManagerEvent_dc_get, _aui.FrameManagerEvent_dc_set) + Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") + DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") + Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") _aui.FrameManagerEvent_swigregister(FrameManagerEvent) class DockInfo(object): @@ -1439,6 +1446,8 @@ class AuiNotebookEvent(_core.NotifyEvent): old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) + OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) class AuiNotebookPage(object): @@ -1552,6 +1561,9 @@ class AuiTabContainer(object): """AddButton(self, int id, Bitmap bmp)""" return _aui.AuiTabContainer_AddButton(*args, **kwargs) + ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Pages = property(GetPages,doc="See `GetPages`") _aui.AuiTabContainer_swigregister(AuiTabContainer) class AuiTabCtrl(_core.Control,AuiTabContainer): @@ -1628,6 +1640,8 @@ class AuiMultiNotebook(_core.Control): """GetPage(self, size_t page_idx) -> Window""" return _aui.AuiMultiNotebook_GetPage(*args, **kwargs) + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiMultiNotebook_swigregister(AuiMultiNotebook) def PreAuiMultiNotebook(*args, **kwargs): diff --git a/wxPython/src/gtk/aui_wrap.cpp b/wxPython/src/gtk/aui_wrap.cpp index b49c66df3e..d78cb06eab 100644 --- a/wxPython/src/gtk/aui_wrap.cpp +++ b/wxPython/src/gtk/aui_wrap.cpp @@ -2897,7 +2897,7 @@ SWIG_From_size_t (size_t value) } -// A wxDocArt lcass that knows how to forward virtuals to Python methods +// A wxDocArt class that knows how to forward virtuals to Python methods class wxPyDockArt : public wxDefaultDockArt { wxPyDockArt() : wxDefaultDockArt() {} diff --git a/wxPython/src/gtk/calendar.py b/wxPython/src/gtk/calendar.py index c6aa75d40c..8b66d7f2bf 100644 --- a/wxPython/src/gtk/calendar.py +++ b/wxPython/src/gtk/calendar.py @@ -161,6 +161,11 @@ class CalendarDateAttr(object): """GetBorder(self) -> int""" return _calendar.CalendarDateAttr_GetBorder(*args, **kwargs) + BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") + Border = property(GetBorder,SetBorder,doc="See `GetBorder` and `SetBorder`") + BorderColour = property(GetBorderColour,SetBorderColour,doc="See `GetBorderColour` and `SetBorderColour`") + Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") + TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") _calendar.CalendarDateAttr_swigregister(CalendarDateAttr) class CalendarEvent(_core.DateEvent): @@ -186,6 +191,7 @@ class CalendarEvent(_core.DateEvent): """returns datetime.date object""" return _wxdate2pydate(self.GetDate()) + WeekDay = property(GetWeekDay,SetWeekDay,doc="See `GetWeekDay` and `SetWeekDay`") _calendar.CalendarEvent_swigregister(CalendarEvent) wxEVT_CALENDAR_DOUBLECLICKED = _calendar.wxEVT_CALENDAR_DOUBLECLICKED @@ -525,6 +531,17 @@ class CalendarCtrl(_core.Control): """returns datetime.date object""" return _wxdate2pydate(self.GetUpperDateLimit()) + Date = property(GetDate,SetDate,doc="See `GetDate` and `SetDate`") + HeaderColourBg = property(GetHeaderColourBg,doc="See `GetHeaderColourBg`") + HeaderColourFg = property(GetHeaderColourFg,doc="See `GetHeaderColourFg`") + HighlightColourBg = property(GetHighlightColourBg,doc="See `GetHighlightColourBg`") + HighlightColourFg = property(GetHighlightColourFg,doc="See `GetHighlightColourFg`") + HolidayColourBg = property(GetHolidayColourBg,doc="See `GetHolidayColourBg`") + HolidayColourFg = property(GetHolidayColourFg,doc="See `GetHolidayColourFg`") + LowerDateLimit = property(GetLowerDateLimit,SetLowerDateLimit,doc="See `GetLowerDateLimit` and `SetLowerDateLimit`") + MonthControl = property(GetMonthControl,doc="See `GetMonthControl`") + UpperDateLimit = property(GetUpperDateLimit,SetUpperDateLimit,doc="See `GetUpperDateLimit` and `SetUpperDateLimit`") + YearControl = property(GetYearControl,doc="See `GetYearControl`") _calendar.CalendarCtrl_swigregister(CalendarCtrl) cvar = _calendar.cvar CalendarNameStr = cvar.CalendarNameStr diff --git a/wxPython/src/mac/_gdi.py b/wxPython/src/mac/_gdi.py index eee749ce44..c0ede485dd 100644 --- a/wxPython/src/mac/_gdi.py +++ b/wxPython/src/mac/_gdi.py @@ -3646,7 +3646,7 @@ class DC(_core.Object): GetMultiLineTextExtent(wxString string, Font font=None) -> (width, height, lineHeight) - Get the width, height, decent and leading of the text using the + Get the width, height, and line height of the text using the current or specified font. Works for single as well as multi-line strings. """ diff --git a/wxPython/src/mac/aui.py b/wxPython/src/mac/aui.py index 6bf815bac6..aea724538e 100644 --- a/wxPython/src/mac/aui.py +++ b/wxPython/src/mac/aui.py @@ -1170,6 +1170,10 @@ class FrameManager(_core.EvtHandler): GetFrame = wx._deprecated(GetManagedWindow, "GetFrame is deprecated, use `GetManagedWindow` instead.") + AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") + ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") _aui.FrameManager_swigregister(FrameManager) class FrameManagerEvent(_core.Event): @@ -1228,6 +1232,9 @@ class FrameManagerEvent(_core.Event): veto_flag = property(_aui.FrameManagerEvent_veto_flag_get, _aui.FrameManagerEvent_veto_flag_set) canveto_flag = property(_aui.FrameManagerEvent_canveto_flag_get, _aui.FrameManagerEvent_canveto_flag_set) dc = property(_aui.FrameManagerEvent_dc_get, _aui.FrameManagerEvent_dc_set) + Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") + DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") + Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") _aui.FrameManagerEvent_swigregister(FrameManagerEvent) class DockInfo(object): @@ -1439,6 +1446,8 @@ class AuiNotebookEvent(_core.NotifyEvent): old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) + OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) class AuiNotebookPage(object): @@ -1552,6 +1561,9 @@ class AuiTabContainer(object): """AddButton(self, int id, Bitmap bmp)""" return _aui.AuiTabContainer_AddButton(*args, **kwargs) + ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Pages = property(GetPages,doc="See `GetPages`") _aui.AuiTabContainer_swigregister(AuiTabContainer) class AuiTabCtrl(_core.Control,AuiTabContainer): @@ -1628,6 +1640,8 @@ class AuiMultiNotebook(_core.Control): """GetPage(self, size_t page_idx) -> Window""" return _aui.AuiMultiNotebook_GetPage(*args, **kwargs) + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiMultiNotebook_swigregister(AuiMultiNotebook) def PreAuiMultiNotebook(*args, **kwargs): diff --git a/wxPython/src/mac/aui_wrap.cpp b/wxPython/src/mac/aui_wrap.cpp index bb92d57775..36858bfc04 100644 --- a/wxPython/src/mac/aui_wrap.cpp +++ b/wxPython/src/mac/aui_wrap.cpp @@ -2897,7 +2897,7 @@ SWIG_From_size_t (size_t value) } -// A wxDocArt lcass that knows how to forward virtuals to Python methods +// A wxDocArt class that knows how to forward virtuals to Python methods class wxPyDockArt : public wxDefaultDockArt { wxPyDockArt() : wxDefaultDockArt() {} diff --git a/wxPython/src/mac/calendar.py b/wxPython/src/mac/calendar.py index c6aa75d40c..8b66d7f2bf 100644 --- a/wxPython/src/mac/calendar.py +++ b/wxPython/src/mac/calendar.py @@ -161,6 +161,11 @@ class CalendarDateAttr(object): """GetBorder(self) -> int""" return _calendar.CalendarDateAttr_GetBorder(*args, **kwargs) + BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") + Border = property(GetBorder,SetBorder,doc="See `GetBorder` and `SetBorder`") + BorderColour = property(GetBorderColour,SetBorderColour,doc="See `GetBorderColour` and `SetBorderColour`") + Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") + TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") _calendar.CalendarDateAttr_swigregister(CalendarDateAttr) class CalendarEvent(_core.DateEvent): @@ -186,6 +191,7 @@ class CalendarEvent(_core.DateEvent): """returns datetime.date object""" return _wxdate2pydate(self.GetDate()) + WeekDay = property(GetWeekDay,SetWeekDay,doc="See `GetWeekDay` and `SetWeekDay`") _calendar.CalendarEvent_swigregister(CalendarEvent) wxEVT_CALENDAR_DOUBLECLICKED = _calendar.wxEVT_CALENDAR_DOUBLECLICKED @@ -525,6 +531,17 @@ class CalendarCtrl(_core.Control): """returns datetime.date object""" return _wxdate2pydate(self.GetUpperDateLimit()) + Date = property(GetDate,SetDate,doc="See `GetDate` and `SetDate`") + HeaderColourBg = property(GetHeaderColourBg,doc="See `GetHeaderColourBg`") + HeaderColourFg = property(GetHeaderColourFg,doc="See `GetHeaderColourFg`") + HighlightColourBg = property(GetHighlightColourBg,doc="See `GetHighlightColourBg`") + HighlightColourFg = property(GetHighlightColourFg,doc="See `GetHighlightColourFg`") + HolidayColourBg = property(GetHolidayColourBg,doc="See `GetHolidayColourBg`") + HolidayColourFg = property(GetHolidayColourFg,doc="See `GetHolidayColourFg`") + LowerDateLimit = property(GetLowerDateLimit,SetLowerDateLimit,doc="See `GetLowerDateLimit` and `SetLowerDateLimit`") + MonthControl = property(GetMonthControl,doc="See `GetMonthControl`") + UpperDateLimit = property(GetUpperDateLimit,SetUpperDateLimit,doc="See `GetUpperDateLimit` and `SetUpperDateLimit`") + YearControl = property(GetYearControl,doc="See `GetYearControl`") _calendar.CalendarCtrl_swigregister(CalendarCtrl) cvar = _calendar.cvar CalendarNameStr = cvar.CalendarNameStr diff --git a/wxPython/src/msw/_gdi.py b/wxPython/src/msw/_gdi.py index 69a76ea571..fb88b49deb 100644 --- a/wxPython/src/msw/_gdi.py +++ b/wxPython/src/msw/_gdi.py @@ -3736,7 +3736,7 @@ class DC(_core.Object): GetMultiLineTextExtent(wxString string, Font font=None) -> (width, height, lineHeight) - Get the width, height, decent and leading of the text using the + Get the width, height, and line height of the text using the current or specified font. Works for single as well as multi-line strings. """ diff --git a/wxPython/src/msw/aui.py b/wxPython/src/msw/aui.py index 6bf815bac6..aea724538e 100644 --- a/wxPython/src/msw/aui.py +++ b/wxPython/src/msw/aui.py @@ -1170,6 +1170,10 @@ class FrameManager(_core.EvtHandler): GetFrame = wx._deprecated(GetManagedWindow, "GetFrame is deprecated, use `GetManagedWindow` instead.") + AllPanes = property(GetAllPanes,doc="See `GetAllPanes`") + ArtProvider = property(GetArtProvider,SetArtProvider,doc="See `GetArtProvider` and `SetArtProvider`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + ManagedWindow = property(GetManagedWindow,SetManagedWindow,doc="See `GetManagedWindow` and `SetManagedWindow`") _aui.FrameManager_swigregister(FrameManager) class FrameManagerEvent(_core.Event): @@ -1228,6 +1232,9 @@ class FrameManagerEvent(_core.Event): veto_flag = property(_aui.FrameManagerEvent_veto_flag_get, _aui.FrameManagerEvent_veto_flag_set) canveto_flag = property(_aui.FrameManagerEvent_canveto_flag_get, _aui.FrameManagerEvent_canveto_flag_set) dc = property(_aui.FrameManagerEvent_dc_get, _aui.FrameManagerEvent_dc_set) + Button = property(GetButton,SetButton,doc="See `GetButton` and `SetButton`") + DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") + Pane = property(GetPane,SetPane,doc="See `GetPane` and `SetPane`") _aui.FrameManagerEvent_swigregister(FrameManagerEvent) class DockInfo(object): @@ -1439,6 +1446,8 @@ class AuiNotebookEvent(_core.NotifyEvent): old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set) selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set) + OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiNotebookEvent_swigregister(AuiNotebookEvent) class AuiNotebookPage(object): @@ -1552,6 +1561,9 @@ class AuiTabContainer(object): """AddButton(self, int id, Bitmap bmp)""" return _aui.AuiTabContainer_AddButton(*args, **kwargs) + ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Pages = property(GetPages,doc="See `GetPages`") _aui.AuiTabContainer_swigregister(AuiTabContainer) class AuiTabCtrl(_core.Control,AuiTabContainer): @@ -1628,6 +1640,8 @@ class AuiMultiNotebook(_core.Control): """GetPage(self, size_t page_idx) -> Window""" return _aui.AuiMultiNotebook_GetPage(*args, **kwargs) + PageCount = property(GetPageCount,doc="See `GetPageCount`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiMultiNotebook_swigregister(AuiMultiNotebook) def PreAuiMultiNotebook(*args, **kwargs): diff --git a/wxPython/src/msw/aui_wrap.cpp b/wxPython/src/msw/aui_wrap.cpp index b49c66df3e..d78cb06eab 100644 --- a/wxPython/src/msw/aui_wrap.cpp +++ b/wxPython/src/msw/aui_wrap.cpp @@ -2897,7 +2897,7 @@ SWIG_From_size_t (size_t value) } -// A wxDocArt lcass that knows how to forward virtuals to Python methods +// A wxDocArt class that knows how to forward virtuals to Python methods class wxPyDockArt : public wxDefaultDockArt { wxPyDockArt() : wxDefaultDockArt() {} diff --git a/wxPython/src/msw/calendar.py b/wxPython/src/msw/calendar.py index c6aa75d40c..8b66d7f2bf 100644 --- a/wxPython/src/msw/calendar.py +++ b/wxPython/src/msw/calendar.py @@ -161,6 +161,11 @@ class CalendarDateAttr(object): """GetBorder(self) -> int""" return _calendar.CalendarDateAttr_GetBorder(*args, **kwargs) + BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") + Border = property(GetBorder,SetBorder,doc="See `GetBorder` and `SetBorder`") + BorderColour = property(GetBorderColour,SetBorderColour,doc="See `GetBorderColour` and `SetBorderColour`") + Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") + TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") _calendar.CalendarDateAttr_swigregister(CalendarDateAttr) class CalendarEvent(_core.DateEvent): @@ -186,6 +191,7 @@ class CalendarEvent(_core.DateEvent): """returns datetime.date object""" return _wxdate2pydate(self.GetDate()) + WeekDay = property(GetWeekDay,SetWeekDay,doc="See `GetWeekDay` and `SetWeekDay`") _calendar.CalendarEvent_swigregister(CalendarEvent) wxEVT_CALENDAR_DOUBLECLICKED = _calendar.wxEVT_CALENDAR_DOUBLECLICKED @@ -525,6 +531,17 @@ class CalendarCtrl(_core.Control): """returns datetime.date object""" return _wxdate2pydate(self.GetUpperDateLimit()) + Date = property(GetDate,SetDate,doc="See `GetDate` and `SetDate`") + HeaderColourBg = property(GetHeaderColourBg,doc="See `GetHeaderColourBg`") + HeaderColourFg = property(GetHeaderColourFg,doc="See `GetHeaderColourFg`") + HighlightColourBg = property(GetHighlightColourBg,doc="See `GetHighlightColourBg`") + HighlightColourFg = property(GetHighlightColourFg,doc="See `GetHighlightColourFg`") + HolidayColourBg = property(GetHolidayColourBg,doc="See `GetHolidayColourBg`") + HolidayColourFg = property(GetHolidayColourFg,doc="See `GetHolidayColourFg`") + LowerDateLimit = property(GetLowerDateLimit,SetLowerDateLimit,doc="See `GetLowerDateLimit` and `SetLowerDateLimit`") + MonthControl = property(GetMonthControl,doc="See `GetMonthControl`") + UpperDateLimit = property(GetUpperDateLimit,SetUpperDateLimit,doc="See `GetUpperDateLimit` and `SetUpperDateLimit`") + YearControl = property(GetYearControl,doc="See `GetYearControl`") _calendar.CalendarCtrl_swigregister(CalendarCtrl) cvar = _calendar.cvar CalendarNameStr = cvar.CalendarNameStr