pyworkflow.gui.project.base module

class pyworkflow.gui.project.base.ProjectBaseWindow(title, masterWindow=None, weight=True, minsize=(900, 500), icon='scipion_icon.png', **kwargs)[source]

Bases: Window

Base windows for Project and Manager GUIs. It extends from Window and add some layout functions (header and footer)

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

addViewList(header)[source]

Create the view selection frame (Protocols|Data) in the header.

createHeaderFrame(parent)[source]

Create the Header frame at the top of the windows. It has (from left to right):

  • Main application Logo

  • Project Name

  • View selection combobox

customizeheader(headerFrame)[source]

Implement in children classes to customize it: e.g.: Project name in project window

getViewWidget()[source]
onAbout()[source]
onConfiguration()[source]
onContactSupport()[source]
onExit()[source]
onOnlineHelp()[source]
switchView(newView)[source]