pyworkflow.gui.text module¶
Text based widgets.
-
class
pyworkflow.gui.text.
HyperlinkManager
(text)[source]¶ 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:
pyworkflow.gui.text.Text
Implement a Text that will show file content and handle console metacharacter for colored output
-
class
pyworkflow.gui.text.
TaggedText
(master, colors=True, **opts)[source]¶ Bases:
pyworkflow.gui.text.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_linkalso colors are recognized if set option colors=True
-
class
pyworkflow.gui.text.
Text
(master, **opts)[source]¶ Bases:
Tkinter.Text
,pyworkflow.gui.widgets.Scrollable
Base Text widget with some functionalities that will be used for other extensions.
-
class
pyworkflow.gui.text.
TextFileViewer
(master, fileList=[], allowSearch=True, allowRefresh=True, allowOpen=False, font=None, maxSize=400)[source]¶ Bases:
Tkinter.Frame
Implementation of a simple text file viewer
-
LabelBgColor
= 'white'¶
-
-
pyworkflow.gui.text.
configureColorTags
(text)[source]¶ Create tags in text (of type tk.Text) for all the supported colors.