pyworkflow.gui.project.viewprotocols module
- pyworkflow.gui.project.viewprotocols.INIT_REFRESH_SECONDS = 5
View with the protocols inside the main project window.
- class pyworkflow.gui.project.viewprotocols.ProtocolsView(parent, window, **args)[source]
Bases:
Frame
What you see when the “Protocols” tab is selected.
In the main project window there are three tabs: “Protocols | Data | Hosts”. This extended tk.Frame is what will appear when Protocols is on.
Construct a frame widget with the parent MASTER.
Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.
- RUNS_CANVAS_NAME = 'runs_canvas'
- SIZE_COLORS = {1048576: 'green', 1073741824: 'orange', 1099511627776: 'red'}
- createContent()[source]
Create the Protocols View for the Project. It has two panes:
Left: containing the Protocol classes tree Right: containing the Runs list
- executeProtocol(prot)[source]
Function to execute a protocol called not directly from the Form “Execute” button.
- getCurrentProtocolView()[source]
Select the view that is currently selected. Read from the settings the last selected view and get the information from the self._protocolViews dict.
- refreshDisplayedRuns(e=None, initRefreshCounter=True, checkPids=False, position=None)[source]
Refresh the status of displayed runs. Params:
e: Tk event input initRefreshCounter: if True the refresh counter will be set to 3 secs
then only case when False is from _automaticRefreshRuns where the refresh time is doubled each time to avoid refreshing too often.