pyworkflow.gui.project.searchrun module
This modules hosts code provider and window to search for a run
- class pyworkflow.gui.project.searchrun.RunsTreeProvider(project, actionFunc)[source]
Bases:
ProjectRunsTreeProvider
Provide runs info to populate tree inside viewprotocols. Is more advanced than ProjectRunsTreeProvider extended, extended with right click actions.
- getObjectActions(obj, withEvent=False)[source]
Get actions available to perform.
This method is called in 2 cases: 1.- Right-click on the tree (list of runs) 2.- Right-click on the canvas. When called from the canvas we need the event to get the click’s position.
- Parameters
obj – optional, if passed, actions on the object. otherwise generic actions
withEvent – pass True if callback has to have the event as a parameter (call from canvas but not from tree)
- class pyworkflow.gui.project.searchrun.SearchRunWindow(parentWindow, runsGraph, **kwargs)[source]
Bases:
SearchBaseWindow
Create a Tk window. title: string to use as title for the windows. master: if not provided, the windows create will be the principal one weight: if true, the first col and row will be configured with weight=1 minsize: a minimum size for height and width icon: if not None, set the windows icon
- columnConfig = {'#0': ('Id', {'width': 100, 'stretch': 0}, 10), 'Comment': ('Comment', {'width': 300, 'stretch': 0}, 5), 'Expanded': ('Expanded', {'width': 150, 'stretch': 0}, 5), 'Run': ('Run', {'width': 300, 'stretch': 1}, 10), 'State': ('State', {'width': 150, 'stretch': 0}, 5), 'Time': ('Time', {'width': 200, 'stretch': 0}, 5)}