Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module customtreectrl :: Class GenericTreeItem |
|
This class holds all the information and methods for every single item in CustomTreeCtrl. No wx based.
Method Summary | |
---|---|
Default class constructor. | |
Assigns the item attributes (font, colours). | |
Creates a new attribute (font, colours). | |
Check an item. | |
Collapse the item. | |
Deletes the item children. | |
Enables/disables the item. | |
Expand the item. | |
Returns the item attributes (font, colours). | |
Returns the item check image. | |
Returns the item's children. | |
Gets the number of children. | |
Returns the current item check image. | |
Returns the current item image. | |
Returns the data associated to this item. | |
Returns the height of the item. | |
Returns the item image for a particular state. | |
Gets the item parent. | |
Returns the item size. | |
Returns the item text. | |
Returns the item type. | |
Returns whether an hypertext item was visited or not. | |
Returns the width of the item. | |
Returns the window associated to the item. | |
Returns whether the associated window is enabled or not. | |
Returns the associated window size. | |
Returns the x position on an item in the ScrolledWindow. | |
Returns the y position on an item in the ScrolledWindow. | |
Returns whether the item has children or not. | |
Returns whether the item has the plus button or not. | |
HitTest method for an item. | |
Inserts an item in the item children. | |
Returns whether the item font is bold or not. | |
Returns whether the item is checked or not. | |
Returns whether the item is enabled or not. | |
Returns whether the item is expanded or not. | |
Returns whether the item is hypetext or not. | |
Returns whether the item font is italic or not. | |
Returns whether the item is ok or not. | |
Returns whether the item is selected or not. | |
Handles the wx.EVT_SET_FOCUS event for the associated window. | |
Sets the item attributes (font, colours). | |
Sets the item font bold. | |
Sets the data associated to this item. | |
Sets whether an item has the 'plus' button. | |
Sets the height of the item. | |
Sets the item focus/unfocus. | |
Sets whether the item is hypertext or not. | |
Sets the item image. | |
Sets the item font italic. | |
Sets the item text. | |
Sets whether an hypertext item was visited or not. | |
Sets the width of the item. | |
Sets the window associated to the item. | |
Sets whether the associated window is enabled or not. | |
Sets the x position on an item in the ScrolledWindow. | |
Sets the y position on an item in the ScrolledWindow. |
Method Details |
---|
__init__(self,
parent,
text='',
ct_type=0,
wnd=None,
image=-1,
selImage=-1,
data=None)
|
AssignAttributes(self, attr)Assigns the item attributes (font, colours). |
Attr(self)Creates a new attribute (font, colours). |
Check(self, checked=True)Check an item. Meaningful only for check and radio items. |
Collapse(self)Collapse the item. |
DeleteChildren(self, tree)Deletes the item children. |
Enable(self, enable=True)Enables/disables the item. |
Expand(self)Expand the item. |
GetAttributes(self)Returns the item attributes (font, colours). |
GetCheckedImage(self, which=0)Returns the item check image. Meaningful only for radio & check items. |
GetChildren(self)Returns the item's children. |
GetChildrenCount(self, recursively=True)Gets the number of children. |
GetCurrentCheckedImage(self)Returns the current item check image. |
GetCurrentImage(self)Returns the current item image. |
GetData(self)Returns the data associated to this item. |
GetHeight(self)Returns the height of the item. |
GetImage(self, which=0)Returns the item image for a particular state. |
GetParent(self)Gets the item parent. |
GetSize(self, x, y, theButton)Returns the item size. |
GetText(self)Returns the item text. |
GetType(self)Returns the item type. It should be one of: 0: normal items 1: checkbox item 2: radiobutton item |
GetVisited(self)Returns whether an hypertext item was visited or not. |
GetWidth(self)Returns the width of the item. |
GetWindow(self)Returns the window associated to the item. |
GetWindowEnabled(self)Returns whether the associated window is enabled or not. |
GetWindowSize(self)Returns the associated window size. |
GetX(self)Returns the x position on an item in the ScrolledWindow. |
GetY(self)Returns the y position on an item in the ScrolledWindow. |
HasChildren(self)Returns whether the item has children or not. |
HasPlus(self)Returns whether the item has the plus button or not. |
HitTest(self, point, theCtrl, flags=0, level=0)HitTest method for an item. Called from the main window HitTest. see the CustomTreeCtrl HitTest method for the flags explanation. |
Insert(self, child, index)Inserts an item in the item children. |
IsBold(self)Returns whether the item font is bold or not. |
IsChecked(self)Returns whether the item is checked or not. |
IsEnabled(self)Returns whether the item is enabled or not. |
IsExpanded(self)Returns whether the item is expanded or not. |
IsHyperText(self)Returns whether the item is hypetext or not. |
IsItalic(self)Returns whether the item font is italic or not. |
IsOk(self)Returns whether the item is ok or not. Useless on Python, but added for backward compatibility with the C++ implementation. |
IsSelected(self)Returns whether the item is selected or not. |
OnSetFocus(self, event)Handles the wx.EVT_SET_FOCUS event for the associated window. |
SetAttributes(self, attr)Sets the item attributes (font, colours). |
SetBold(self, bold)Sets the item font bold. |
SetData(self, data)Sets the data associated to this item. |
SetHasPlus(self, has=True)Sets whether an item has the 'plus' button. |
SetHeight(self, h)Sets the height of the item. |
SetHilight(self, set=True)Sets the item focus/unfocus. |
SetHyperText(self, hyper=True)Sets whether the item is hypertext or not. |
SetImage(self, image, which)Sets the item image. |
SetItalic(self, italic)Sets the item font italic. |
SetText(self, text)Sets the item text. |
SetVisited(self, visited=True)Sets whether an hypertext item was visited or not. |
SetWidth(self, w)Sets the width of the item. |
SetWindow(self, wnd)Sets the window associated to the item. |
SetWindowEnabled(self, enable=True)Sets whether the associated window is enabled or not. |
SetX(self, x)Sets the x position on an item in the ScrolledWindow. |
SetY(self, y)Sets the y position on an item in the ScrolledWindow. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:10:01 2007 | http://epydoc.sf.net |