Trees | Indices | Help |
|
---|
Misc --+ | BaseWidget --+ | Pack --+ | Place --+ | Grid --+ | Tix.Form --+ | Widget --+ | Text
Text widget which can display text in various forms.
{
}
,
**kw){
}
,
**kw){
}
,
**kw)Inherited from BaseWidget
:
destroy
Inherited from BaseWidget
(private):
_do
,
_setup
Inherited from Misc
:
__getitem__
,
__setitem__
,
__str__
,
after
,
after_cancel
,
after_idle
,
bell
,
bind
,
bind_all
,
bind_class
,
bindtags
,
cget
,
clipboard_append
,
clipboard_clear
,
clipboard_get
,
colormodel
,
columnconfigure
,
config
,
configure
,
deletecommand
,
event_add
,
event_delete
,
event_generate
,
event_info
,
focus
,
focus_displayof
,
focus_force
,
focus_get
,
focus_lastfor
,
focus_set
,
getboolean
,
getvar
,
grab_current
,
grab_release
,
grab_set
,
grab_set_global
,
grab_status
,
grid_bbox
,
grid_columnconfigure
,
grid_location
,
grid_propagate
,
grid_rowconfigure
,
grid_size
,
grid_slaves
,
image_types
,
keys
,
lift
,
lower
,
mainloop
,
nametowidget
,
option_add
,
option_clear
,
option_get
,
option_readfile
,
pack_propagate
,
pack_slaves
,
place_slaves
,
propagate
,
quit
,
register
,
rowconfigure
,
selection_clear
,
selection_get
,
selection_handle
,
selection_own
,
selection_own_get
,
send
,
setvar
,
size
,
slaves
,
tk_bisque
,
tk_focusFollowsMouse
,
tk_focusNext
,
tk_focusPrev
,
tk_menuBar
,
tk_setPalette
,
tk_strictMotif
,
tkraise
,
unbind
,
unbind_all
,
unbind_class
,
update
,
update_idletasks
,
wait_variable
,
wait_visibility
,
wait_window
,
waitvar
,
winfo_atom
,
winfo_atomname
,
winfo_cells
,
winfo_children
,
winfo_class
,
winfo_colormapfull
,
winfo_containing
,
winfo_depth
,
winfo_exists
,
winfo_fpixels
,
winfo_geometry
,
winfo_height
,
winfo_id
,
winfo_interps
,
winfo_ismapped
,
winfo_manager
,
winfo_name
,
winfo_parent
,
winfo_pathname
,
winfo_pixels
,
winfo_pointerx
,
winfo_pointerxy
,
winfo_pointery
,
winfo_reqheight
,
winfo_reqwidth
,
winfo_rgb
,
winfo_rootx
,
winfo_rooty
,
winfo_screen
,
winfo_screencells
,
winfo_screendepth
,
winfo_screenheight
,
winfo_screenmmheight
,
winfo_screenmmwidth
,
winfo_screenvisual
,
winfo_screenwidth
,
winfo_server
,
winfo_toplevel
,
winfo_viewable
,
winfo_visual
,
winfo_visualid
,
winfo_visualsavailable
,
winfo_vrootheight
,
winfo_vrootwidth
,
winfo_vrootx
,
winfo_vrooty
,
winfo_width
,
winfo_x
,
winfo_y
Inherited from Misc
(private):
_bind
,
_configure
,
_displayof
,
_getboolean
,
_getdoubles
,
_getints
,
_grid_configure
,
_nametowidget
,
_options
,
_register
,
_report_exception
,
_root
,
_substitute
Inherited from Pack
:
forget
,
info
,
pack
,
pack_configure
,
pack_forget
,
pack_info
Inherited from Place
:
place
,
place_configure
,
place_forget
,
place_info
Inherited from Grid
:
grid
,
grid_configure
,
grid_forget
,
grid_info
,
grid_remove
,
location
Inherited from Misc
(private):
_subst_format
,
_subst_format_str
,
_tclCommands
{
}
,
**kw)
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,
Return a tuple of (x,y,width,height) which gives the bounding box of the visible part of the character at the index in ARGS.
Return whether between index INDEX1 and index INDEX2 the relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.
Return the contents of the widget between index1 and index2.
The type of contents returned in filtered based on the keyword parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are given and true, then the corresponding items are returned. The result is a list of triples of the form (key, value, index). If none of the keywords are true then 'all' is used by default.
If the 'command' argument is given, it is called once for each element of the list of triples, with the values of each triple serving as the arguments to the function. In this case the list is not returned.
Internal method
This method controls the undo mechanism and the modified flag. The exact behavior of the command depends on the option argument that follows the edit argument. The following forms of the command are currently supported:
edit_modified, edit_redo, edit_reset, edit_separator and edit_undo
Get or Set the modified flag
If arg is not specified, returns the modified flag of the widget. The insert, delete, edit undo and edit redo commands or the user can set or clear the modified flag. If boolean is specified, sets the modified flag of the widget to arg.
Redo the last undone edit
When the undo option is true, reapplies the last undone edits provided no other edits were done since then. Generates an error when the redo stack is empty. Does nothing when the undo option is false.
Inserts a separator (boundary) on the undo stack.
Does nothing when the undo option is false
Undoes the last edit action
If the undo option is true. An edit action is defined as all the insert and delete commands that are recorded on the undo stack in between two separators. Generates an error when the undo stack is empty. Does nothing when the undo option is false
Insert CHARS before the characters at INDEX. An additional tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.
Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT). Return the current value if None is given for DIRECTION.
Search PATTERN beginning from INDEX until STOPINDEX. Return the index of the first character of a match or an empty string.
Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS. Additional pairs of indices may follow in ARGS.
Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC.
An additional boolean parameter ADD specifies whether FUNC will be called additionally to the other bound function or whether it will replace the previous function. See bind for the return value.
Return a list of start and end index for the first sequence of characters between INDEX1 and INDEX2 which all have tag TAGNAME. The text is searched forward from INDEX1.
Return a list of start and end index for the first sequence of characters between INDEX1 and INDEX2 which all have tag TAGNAME. The text is searched backwards from INDEX1.
Trees | Indices | Help |
|
---|