pyworkflow.gui.gui module
- class pyworkflow.gui.gui.Window(title='', masterWindow=None, weight=True, minsize=(500, 300), icon='scipion_icon.png', **kwargs)[source]
Bases:
object
Class to manage a Tk windows. It will encapsulate some basic creation and setup functions.
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
- createCloseButton(parent)[source]
Create a button for closing the window, setting the proper label and icon.
- pyworkflow.gui.gui.aliasFont(fontAlias, fontKey)[source]
Set a fontAlias as another alias name of fontKey
- pyworkflow.gui.gui.centerWindows(root, dim=None, refWindows=None)[source]
Center a windows in the middle of the screen or in the middle of other windows(refWindows param)
- pyworkflow.gui.gui.configureWeigths(widget, row=0, column=0)[source]
This function is a shortcut to a common used pair of calls: rowconfigure and columnconfigure for making childs widgets take the space available
- pyworkflow.gui.gui.getGeometry(win)[source]
Return the geometry information of the windows It will be a tuple (width, height, x, y)
- pyworkflow.gui.gui.getImage(imageName, imgDict=None, tkImage=True, percent=100, maxheight=None)[source]
Search for the image in the RESOURCES path list.