Base class for all the Ribbon stuff.
wx.lib.agw.ribbon.bar.RibbonBar
, wx.lib.agw.ribbon.buttonbar.RibbonButtonBar
, wx.lib.agw.ribbon.gallery.RibbonGallery
, wx.lib.agw.ribbon.page.RibbonPage
, wx.lib.agw.ribbon.page.RibbonPageScrollButton
, wx.lib.agw.ribbon.panel.RibbonPanel
, wx.lib.agw.ribbon.toolbar.RibbonToolBar
__init__ |
Default class constructor. |
DoGetNextLargerSize |
Implementation of GetNextLargerSize . |
DoGetNextSmallerSize |
Implementation of GetNextSmallerSize . |
GetArtProvider |
Get the art provider to be used. |
GetNextLargerSize |
If sizing is not continuous, then return a suitable size for the control which |
GetNextSmallerSize |
If sizing is not continuous, then return a suitable size for the control which |
IsSizingContinuous |
Returns True if this window can take any size (greater than its minimum size), |
Realise |
Alias for Realize . |
Realize |
Perform initial size and layout calculations after children have been added, |
SetArtProvider |
Set the art provider to be used. |
RibbonControl
(wx.Control)¶Base class for all the Ribbon stuff.
__init__
(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name="RibbonControl")¶Default class constructor.
Parameters: |
|
---|
DoGetNextLargerSize
(self, direction, size)¶Implementation of GetNextLargerSize
.
Controls which have non-continuous sizing must override this virtual function
rather than GetNextLargerSize
.
Parameters: |
|
---|
DoGetNextSmallerSize
(self, direction, size)¶Implementation of GetNextSmallerSize
.
Controls which have non-continuous sizing must override this virtual function
rather than GetNextSmallerSize
.
Parameters: |
|
---|
GetArtProvider
(self)¶Get the art provider to be used.
Note that until an art provider has been set in some way, this function may
return None
.
GetNextLargerSize
(self, direction, relative_to=None)¶If sizing is not continuous, then return a suitable size for the control which is larger then the given size.
Parameters: |
|
---|---|
Returns: | if there is no larger size, otherwise a suitable size which is larger in the given direction(s), and the same as in the other direction (if any). |
See also
GetNextSmallerSize
(self, direction, relative_to=None)¶If sizing is not continuous, then return a suitable size for the control which is smaller than the given size.
Parameters: |
|
---|---|
Returns: | if there is no smaller size, otherwise a suitable size which is smaller in the given direction(s), and the same as in the other direction (if any). |
See also
IsSizingContinuous
(self)¶Returns True
if this window can take any size (greater than its minimum size),
False
if it can only take certain sizes.
See also
Realize
(self)¶Perform initial size and layout calculations after children have been added, and/or realize children.
SetArtProvider
(self, art)¶Set the art provider to be used.
In many cases, setting the art provider will also set the art provider on all
child windows which extend RibbonControl
. In most cases, controls will not
take ownership of the given pointer, with the notable exception being
RibbonBar.SetArtProvider()
.
Parameters: | art – an art provider. |
---|