soar.gui.output¶
Soar output classes.
Tk widgets allowing the capture and display of text output in the GUI.
-
class
soar.gui.output.OutputFrame(master, initial_text='')¶ Bases:
tkinter.FrameA read-only Tk output frame that can display normal and error output.
Parameters: - master – The parent widget or window.
- initial_text (str, optional) – The text to have initially in the output frame.
-
clear()¶ Clear the entire text field.
-
error(text)¶ Insert error output text at the end of the text field.
Parameters: text (str) – The text to insert.
-
insert(text, *tags)¶ Insert text at the end of the text field.
Parameters: - text (str) – The text to insert.
- *tags – Variable length
strlist of tags to attach to the text. The'output'tag signifies normal output, and the'error'tag signifies that the text will be red.
-
link(text)¶ Insert a clickable link at the end of the text field.
Parameters: text (str) – The link text to insert.
-
output(text)¶ Insert normal output text at the end of the text field.
Parameters: text (str) – The text to insert.