KekLib.ReadOnlyText#
ReadOnlyText.py
copied from Readonly tkinter text widget https://stackoverflow.com/questions/21873195/readonly-tkinter-text-widget/21882093
- class CopyableLabel(parent, text, *args, **kwargs)#
Bases:
ReadOnlyTextConstruct 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,
- config(text=None, *args, **kwargs)#
Query or modify the configuration options of the widget.
If no arguments are specified, return a dictionary describing all of the available options for the widget.
If an option name is specified, then return a tuple describing the one named option.
If one or more keyword arguments are specified or a dictionary is specified, then modify the widget option(s) to have the given value(s).
- class ReadOnlyText(*args, **kwords)#
Bases:
TextConstruct 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,
- init_tag()#
Just go through all binding for the Text widget. If the command is allowed, recopy it in the ROText binding table.
- tagInit = False#