add some properties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
@@ -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):
|
||||
|
@@ -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() {}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user