This class holds all the information (caption, image, etc...) belonging to a
single tab in LabelBook
.
__init__ |
Default class constructor. |
EnableTab |
Sets the tab enabled or disabled. |
GetCaption |
Returns the tab caption. |
GetEnabled |
Returns whether the tab is enabled or not. |
GetImageIndex |
Returns the tab image index. |
GetPosition |
Returns the tab position. |
GetSize |
Returns the tab size. |
GetTextRect |
Returns the client rectangle available for the tab text. |
SetCaption |
Sets the tab caption. |
SetImageIndex |
Sets the tab image index. |
SetPosition |
Sets the tab position. |
SetSize |
Sets the tab size. |
SetTextRect |
Sets the client rectangle available for the tab text. |
ImageInfo
(object)¶This class holds all the information (caption, image, etc...) belonging to a
single tab in LabelBook
.
__init__
(self, strCaption="", imageIndex=-1, enabled=True)¶Default class constructor.
Parameters: |
|
---|
EnableTab
(self, enabled)¶Sets the tab enabled or disabled.
Parameters: | enabled – True to enable a tab, False to disable it. |
---|
GetCaption
(self)¶Returns the tab caption.
GetEnabled
(self)¶Returns whether the tab is enabled or not.
GetImageIndex
(self)¶Returns the tab image index.
GetPosition
(self)¶Returns the tab position.
GetSize
(self)¶Returns the tab size.
GetTextRect
(self)¶Returns the client rectangle available for the tab text.
SetCaption
(self, value)¶Sets the tab caption.
Parameters: | value – the new tab caption. |
---|
SetImageIndex
(self, value)¶Sets the tab image index.
Parameters: | value – an index into the image list.. |
---|
SetPosition
(self, value)¶Sets the tab position.
Parameters: | value – the new tab position, an instance of wx.Point . |
---|
SetSize
(self, value)¶Sets the tab size.
Parameters: | value – the new tab size, an instance of wx.Size . |
---|