pyworkflow.gui.text module
Text based widgets.
- class pyworkflow.gui.text.HyperlinkManager(text)[source]
Bases:
object
Tkinter Text Widget Hyperlink Manager, taken from: http://effbot.org/zone/tkinter-text-hyperlink.htm
- class pyworkflow.gui.text.OutputText(master, filename, colors=True, t_refresh=0, maxSize=400, **opts)[source]
Bases:
Text
Implement a Text that will show file content and handle console metacharacter for colored output
colors flag indicate if try to parse color meta-characters t_refresh is the refresh time in seconds, 0 means no refresh
- class pyworkflow.gui.text.TaggedText(master, colors=True, **opts)[source]
Bases:
Text
Implement a Text that will recognize some basic tags some_text will display some_text in bold _some_text_ will display some_text in italic some_link or [[some_link][some_label]] will display some_link
as hyperlink or some_label as hyperlink to some_link
also colors are recognized if set option colors=True
Construct a text widget with the parent MASTER.
STANDARD OPTIONS
background, borderwidth, cursor, exportselection, font, foreground, highlightbackground, highlightcolor, highlightthickness, insertbackground, insertborderwidth, insertofftime, insertontime, insertwidth, padx, pady, relief, selectbackground, selectborderwidth, selectforeground, setgrid, takefocus, xscrollcommand, yscrollcommand,
WIDGET-SPECIFIC OPTIONS
autoseparators, height, maxundo, spacing1, spacing2, spacing3, state, tabs, undo, width, wrap,
- class pyworkflow.gui.text.Text(master, **opts)[source]
Bases:
Text
,Scrollable
Base Text widget with some functionality that will be used by children classes.
Construct a text widget with the parent MASTER.
STANDARD OPTIONS
background, borderwidth, cursor, exportselection, font, foreground, highlightbackground, highlightcolor, highlightthickness, insertbackground, insertborderwidth, insertofftime, insertontime, insertwidth, padx, pady, relief, selectbackground, selectborderwidth, selectforeground, setgrid, takefocus, xscrollcommand, yscrollcommand,
WIDGET-SPECIFIC OPTIONS
autoseparators, height, maxundo, spacing1, spacing2, spacing3, state, tabs, undo, width, wrap,
- class pyworkflow.gui.text.TextFileViewer(master, fileList=[], allowSearch=True, allowRefresh=True, allowOpen=False, font=None, maxSize=400, width=100, height=30)[source]
Bases:
Frame
Implementation of a simple text file viewer
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.
- pyworkflow.gui.text.configureColorTags(text)[source]
Create tags in text (of type tk.Text) for all the supported colors.