Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module hypertreelist :: Class TreeListMainWindow |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Panel
--+ |ScrolledWindow
--+ |PyScrolledWindow
--+ |CustomTreeCtrl
--+ | TreeListMainWindow
Method Summary | |
---|---|
__init__(self,
parent,
id,
pos,
size,
style,
validator,
name)
| |
Adds a root to the HyperTreeList. | |
Adjust the wx.ScrolledWindow scrollbars. | |
CalculateLevel(self,
item,
dc,
level,
y,
x_colstart)
| |
Calculates all the positions of the visible items. | |
CalculateSize(self,
item,
dc)
| |
We are about to destroy the item children. | |
Delete an item. | |
Delete all items in the CustomTreeCtrl. | |
DeleteRoot(self)
| |
Actually inserts an item in the tree. | |
Starts editing an item label. | |
Enables/disables an item. | |
GetBestColumnWidth(self,
column,
parent)
| |
GetColumnCount(self)
| |
GetFirstExpandedItem(self)
| |
GetFirstVisibleItem(self,
fullRow)
| |
GetItemImage(self,
item,
column,
which)
| |
Returns the item text. | |
GetItemWidth(self,
column,
item)
| |
Returns the window associated to the item (if any). | |
Returns whether the window associated to the item is enabled. | |
GetMainColumn(self)
| |
GetNextExpanded(self,
item)
| |
GetPrevChild(self,
item,
cookie)
| |
GetPrevExpanded(self,
item)
| |
Returns the previous visible item. | |
HideItem(self,
item,
hide)
| |
Hides the windows associated to the items. | |
Calculates which (if any) item is under the given point, returning the tree item at this point plus extra information flags. | |
Returns whether an item is enabled or disabled. | |
Returns whether the item is visible or not. | |
IsVirtual(self)
| |
Handles a bunch of wx.EVT_MOUSE_EVENTS events. | |
Handles the wx.EVT_PAINT event. | |
OnRenameAccept(self,
value)
| |
Called by TreeTextCtrl, to cancel the changes and to send the EVT_TREE_END_LABEL_EDIT event. | |
The timer for renaming has expired. | |
OnScroll(self,
event)
| |
PaintItem(self,
item,
dc)
| |
PaintLevel(self,
item,
dc,
level,
y,
x_maincol)
| |
Scrolls the specified item into view. | |
SetDragItem(self,
item)
| |
SetItemImage(self,
item,
image,
column,
which)
| |
Sets the item text. | |
Sets the window associated to the item. | |
Enables/disables the window associated to the item. | |
SetMainColumn(self,
column)
|
Property Summary |
---|
Instance Method Details |
---|
AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None)Adds a root to the HyperTreeList. Only one root must exist. |
AdjustMyScrollbars(self)Adjust the wx.ScrolledWindow scrollbars.
|
CalculatePositions(self)Calculates all the positions of the visible items.
|
ChildrenClosing(self, item)We are about to destroy the item children. |
Delete(self, item)Delete an item. |
DeleteAllItems(self)Delete all items in the CustomTreeCtrl. |
DoInsertItem(self, parent, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None)Actually inserts an item in the tree. |
EditLabel(self, item, column=None)Starts editing an item label.
|
EnableItem(self, item, enable=True, torefresh=True)Enables/disables an item. |
GetItemText(self, item, column=None)Returns the item text.
|
GetItemWindow(self, item, column=None)Returns the window associated to the item (if any). |
GetItemWindowEnabled(self, item, column=None)Returns whether the window associated to the item is enabled. |
GetPrevVisible(self, item, fullRow=True)Returns the previous visible item.
|
HideWindows(self)Hides the windows associated to the items. Used internally. |
HitTest(self, point, flags=0)Calculates which (if any) item is under the given point, returning the tree item at this point plus extra information flags. Flags is a bitlist of the following: TREE_HITTEST_ABOVE above the client area TREE_HITTEST_BELOW below the client area TREE_HITTEST_NOWHERE no item has been hit TREE_HITTEST_ONITEMBUTTON on the button associated to an item TREE_HITTEST_ONITEMICON on the icon associated to an item TREE_HITTEST_ONITEMCHECKICON on the check/radio icon, if present TREE_HITTEST_ONITEMINDENT on the indent associated to an item TREE_HITTEST_ONITEMLABEL on the label (string) associated to an item TREE_HITTEST_ONITEMRIGHT on the right of the label associated to an item TREE_HITTEST_TOLEFT on the left of the client area TREE_HITTEST_TORIGHT on the right of the client area TREE_HITTEST_ONITEMUPPERPART on the upper part (first half) of the item TREE_HITTEST_ONITEMLOWERPART on the lower part (second half) of the item TREE_HITTEST_ONITEM anywhere on the item Note: both the item (if any, None otherwise) and the flag are always returned as a tuple.
|
IsItemEnabled(self, item)Returns whether an item is enabled or disabled.
|
IsItemVisible(self, item)Returns whether the item is visible or not. |
OnMouse(self, event)Handles a bunch of wx.EVT_MOUSE_EVENTS events.
|
OnPaint(self, event)Handles the wx.EVT_PAINT event.
|
OnRenameCancelled(self)Called by TreeTextCtrl, to cancel the changes and to send the EVT_TREE_END_LABEL_EDIT event. |
OnRenameTimer(self)The timer for renaming has expired. Start editing.
|
ScrollTo(self, item)Scrolls the specified item into view.
|
SetItemText(self, item, text, column=None)Sets the item text.
|
SetItemWindow(self, item, window, column=None)Sets the window associated to the item. |
SetItemWindowEnabled(self, item, enable=True, column=None)Enables/disables the window associated to the item. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:52:14 2009 | http://epydoc.sf.net |