wx.lib.agw.labelbook.ImageInfo¶
This class holds all the information (caption, image, etc…) belonging to a
single tab in LabelBook
.
Class Hierarchy¶
Methods Summary¶
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. |
Class API¶
- class ImageInfo(object)¶
This class holds all the information (caption, image, etc…) belonging to a single tab in
LabelBook
.
Methods¶
- __init__(self, strCaption='', imageIndex=-1, enabled=True)¶
Default class constructor.
- Parameters:
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.
- 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
.