This class holds all the information (caption, image, etc…) belonging to a
single tab in LabelBook
.
Default class constructor. |
|
Sets the tab enabled or disabled. |
|
Returns the tab caption. |
|
Returns whether the tab is enabled or not. |
|
Returns the tab image index. |
|
Returns the tab position. |
|
Returns the tab size. |
|
Returns the client rectangle available for the tab text. |
|
Sets the tab caption. |
|
Sets the tab image index. |
|
Sets the tab position. |
|
Sets the tab size. |
|
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.
strCaption – the tab caption;
imageIndex – the tab image index based on the assigned (set)
wx.ImageList
(if any);
enabled – sets the tab as enabled or disabled.
EnableTab
(self, enabled)¶Sets the tab enabled or disabled.
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.
value – the new tab caption.
SetImageIndex
(self, value)¶Sets the tab image index.
value – an index into the image list..
SetPosition
(self, value)¶Sets the tab position.
value – the new tab position, an instance of wx.Point
.
SetSize
(self, value)¶Sets the tab size.
value – the new tab size, an instance of wx.Size
.