Public Member Functions | |
def | __init__ |
def | GetSelectedTracks |
def | RunQuery |
Private Member Functions | |
def | _appendexpanded |
def | _DragData |
def | _executeSQL |
def | _FillInTreeBelow |
def | _onClick |
def | _onExpand |
Private Attributes | |
_querypattern | |
_store | |
_view |
The tree on the left side of the window. Contains tracks grouped by artist then album.
Definition at line 13 of file collectiontree.py.
def __init__ | ( | self, | ||
widget | ||||
) |
def _appendexpanded | ( | self, | ||
its, | ||||
ret | ||||
) | [private] |
Helper function called from GetSelectedTracks. Recurses through the tree.
Definition at line 95 of file collectiontree.py.
def _DragData | ( | self, | ||
widget, | ||||
context, | ||||
sel, | ||||
info, | ||||
time | ||||
) | [private] |
Callback for drag and drop. Represents the drag data as a pickled list of Track objects.
Definition at line 119 of file collectiontree.py.
def _executeSQL | ( | self, | ||
query, | ||||
params | ||||
) | [private] |
Run the SQL 'query' with dictionary 'params' substituted in. Returns the database object, which you can iterate over.
Definition at line 49 of file collectiontree.py.
def _FillInTreeBelow | ( | self, | ||
it | ||||
) | [private] |
Call me if you want to be sure that that the contents of the store beneath 'it' exist.
Definition at line 144 of file collectiontree.py.
def _onClick | ( | self, | ||
widget, | ||||
event | ||||
) | [private] |
Handler for clicks on collection. Responds to right-click by popping-up the context menu.
Definition at line 125 of file collectiontree.py.
def _onExpand | ( | self, | ||
view, | ||||
it, | ||||
path | ||||
) | [private] |
def GetSelectedTracks | ( | self | ) |
Returns a list of track objects representing what is selected.
Definition at line 108 of file collectiontree.py.
def RunQuery | ( | self, | ||
text | ||||
) |
Query the database for tracks matching text and display the results.
Definition at line 61 of file collectiontree.py.
_querypattern [private] |
Definition at line 42 of file collectiontree.py.
_store [private] |
Definition at line 23 of file collectiontree.py.
_view [private] |
Definition at line 17 of file collectiontree.py.