pyworkflow.gui.dialog module¶
Module to handling Dialogs some code was taken from tkSimpleDialog
-
class
pyworkflow.gui.dialog.
Dialog
(parent, title, **kwargs)[source]¶ Bases:
Tkinter.Toplevel
-
apply
()[source]¶ process the data This method is called automatically to process the data, after the dialog is destroyed. By default, it does nothing.
-
body
(master)[source]¶ create dialog body. return widget that should have initial focus. This method should be overridden, and is called by the __init__ method.
-
-
class
pyworkflow.gui.dialog.
EditObjectDialog
(parent, title, obj, mapper, **kwargs)[source]¶ Bases:
pyworkflow.gui.dialog.Dialog
Dialog to edit some text
-
class
pyworkflow.gui.dialog.
EntryDialog
(parent, title, entryLabel, entryWidth=20, defaultValue='', headerLabel=None)[source]¶ Bases:
pyworkflow.gui.dialog.Dialog
Dialog to ask some entry
-
class
pyworkflow.gui.dialog.
FileBrowseDialog
(parent, title, provider, message=None, **args)[source]¶ Bases:
pyworkflow.gui.dialog.Dialog
Dialog to select files from the filesystem.
-
class
pyworkflow.gui.dialog.
FloatingMessage
(master, msg, xPos=750, yPos=80, textWidth=260, font='Helvetica', size=12, bd=1, bg='#6E6E6E', fg='white')[source]¶
-
class
pyworkflow.gui.dialog.
ListDialog
(parent, title, provider, message=None, **kwargs)[source]¶ Bases:
pyworkflow.gui.dialog.Dialog
Dialog to select an element from a list. It is implemented using the Tree widget.
-
class
pyworkflow.gui.dialog.
MessageDialog
(parent, title, msg, iconPath, **args)[source]¶ Bases:
pyworkflow.gui.dialog.Dialog
Dialog subclasses to show message info, questions or errors. It can display an icon with the message
-
class
pyworkflow.gui.dialog.
ToolbarButton
(text, command, icon=None, tooltip=None)[source]¶ Store information about the buttons that will be added to the toolbar.
-
class
pyworkflow.gui.dialog.
ToolbarListDialog
(parent, title, provider, message=None, toolbarButtons=None, **kwargs)[source]¶ Bases:
pyworkflow.gui.dialog.ListDialog
This class extend from ListDialog to allow an extra toolbar to handle operations over the elements in the list (e.g. Edit, New, Delete).
-
class
pyworkflow.gui.dialog.
YesNoDialog
(master, title, msg, **kwargs)[source]¶ Bases:
pyworkflow.gui.dialog.MessageDialog
Ask a question with YES/NO answer
-
pyworkflow.gui.dialog.
askString
(title, label, parent, entryWidth=20, defaultValue='', headerLabel=None)[source]¶