Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « tkinter » Python 3.11.3

Classe « Text »

Informations générales

Héritage

        builtins.object
            YView
        builtins.object
            XView
    builtins.object
        Grid
    builtins.object
        Place
    builtins.object
        Pack
builtins.object
    Misc
        BaseWidget
            Widget
                Text

Définition

class Text(Widget, XView, YView):

help(Text)

Text widget which can display text in various forms.

Constructeur(s)

Signature du constructeur Description
__init__(self, master=None, cnf={}, **kw) Construct a text widget with the parent MASTER. [extrait de __init__.__doc__]

Liste des opérateurs

Opérateurs hérités de la classe Misc

__getitem__, __setitem__

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
bbox(self, index) Return a tuple of (x,y,width,height) which gives the bounding [extrait de bbox.__doc__]
compare(self, index1, op, index2) Return whether between index INDEX1 and index INDEX2 the [extrait de compare.__doc__]
count(self, index1, index2, *args) Counts the number of relevant things between the two indices. [extrait de count.__doc__]
debug(self, boolean=None) Turn on the internal consistency checks of the B-Tree inside the text [extrait de debug.__doc__]
delete(self, index1, index2=None) Delete the characters between INDEX1 and INDEX2 (not included). [extrait de delete.__doc__]
dlineinfo(self, index) Return tuple (x,y,width,height,baseline) giving the bounding box [extrait de dlineinfo.__doc__]
dump(self, index1, index2=None, command=None, **kw) Return the contents of the widget between index1 and index2. [extrait de dump.__doc__]
edit(self, *args) Internal method [extrait de edit.__doc__]
edit_modified(self, arg=None) Get or Set the modified flag [extrait de edit_modified.__doc__]
edit_redo(self) Redo the last undone edit [extrait de edit_redo.__doc__]
edit_reset(self) Clears the undo and redo stacks [extrait de edit_reset.__doc__]
edit_separator(self) Inserts a separator (boundary) on the undo stack. [extrait de edit_separator.__doc__]
edit_undo(self) Undoes the last edit action [extrait de edit_undo.__doc__]
get(self, index1, index2=None) Return the text from INDEX1 to INDEX2 (not included). [extrait de get.__doc__]
image_cget(self, index, option) Return the value of OPTION of an embedded image at INDEX. [extrait de image_cget.__doc__]
image_configure(self, index, cnf=None, **kw) Configure an embedded image at INDEX. [extrait de image_configure.__doc__]
image_create(self, index, cnf={}, **kw) Create an embedded image at INDEX. [extrait de image_create.__doc__]
image_names(self) Return all names of embedded images in this widget. [extrait de image_names.__doc__]
index(self, index) Return the index in the form line.char for INDEX. [extrait de index.__doc__]
insert(self, index, chars, *args) Insert CHARS before the characters at INDEX. An additional [extrait de insert.__doc__]
mark_gravity(self, markName, direction=None) Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT). [extrait de mark_gravity.__doc__]
mark_names(self) Return all mark names. [extrait de mark_names.__doc__]
mark_next(self, index) Return the name of the next mark after INDEX. [extrait de mark_next.__doc__]
mark_previous(self, index) Return the name of the previous mark before INDEX. [extrait de mark_previous.__doc__]
mark_set(self, markName, index) Set mark MARKNAME before the character at INDEX. [extrait de mark_set.__doc__]
mark_unset(self, *markNames) Delete all marks in MARKNAMES. [extrait de mark_unset.__doc__]
peer_create(self, newPathName, cnf={}, **kw) Creates a peer text widget with the given newPathName, and any [extrait de peer_create.__doc__]
peer_names(self) Returns a list of peers of this widget (this does not include [extrait de peer_names.__doc__]
replace(self, index1, index2, chars, *args) Replaces the range of characters between index1 and index2 with [extrait de replace.__doc__]
scan_dragto(self, x, y) Adjust the view of the text to 10 times the [extrait de scan_dragto.__doc__]
scan_mark(self, x, y) Remember the current X, Y coordinates. [extrait de scan_mark.__doc__]
search(self, pattern, index, stopindex=None, forwards=None, backwards=None, exact=None, regexp=None, nocase=None, count=None, elide=None) Search PATTERN beginning from INDEX until STOPINDEX. [extrait de search.__doc__]
see(self, index) Scroll such that the character at INDEX is visible. [extrait de see.__doc__]
tag_add(self, tagName, index1, *args) Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS. [extrait de tag_add.__doc__]
tag_bind(self, tagName, sequence, func, add=None) Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC. [extrait de tag_bind.__doc__]
tag_cget(self, tagName, option) Return the value of OPTION for tag TAGNAME. [extrait de tag_cget.__doc__]
tag_config(self, tagName, cnf=None, **kw) Configure a tag TAGNAME. [extrait de tag_configure.__doc__]
tag_configure(self, tagName, cnf=None, **kw) Configure a tag TAGNAME. [extrait de tag_configure.__doc__]
tag_delete(self, *tagNames) Delete all tags in TAGNAMES. [extrait de tag_delete.__doc__]
tag_lower(self, tagName, belowThis=None) Change the priority of tag TAGNAME such that it is lower [extrait de tag_lower.__doc__]
tag_names(self, index=None) Return a list of all tag names. [extrait de tag_names.__doc__]
tag_nextrange(self, tagName, index1, index2=None) Return a list of start and end index for the first sequence of [extrait de tag_nextrange.__doc__]
tag_prevrange(self, tagName, index1, index2=None) Return a list of start and end index for the first sequence of [extrait de tag_prevrange.__doc__]
tag_raise(self, tagName, aboveThis=None) Change the priority of tag TAGNAME such that it is higher [extrait de tag_raise.__doc__]
tag_ranges(self, tagName) Return a list of ranges of text which have tag TAGNAME. [extrait de tag_ranges.__doc__]
tag_remove(self, tagName, index1, index2=None) Remove tag TAGNAME from all characters between INDEX1 and INDEX2. [extrait de tag_remove.__doc__]
tag_unbind(self, tagName, sequence, funcid=None) Unbind for all characters with TAGNAME for event SEQUENCE the [extrait de tag_unbind.__doc__]
window_cget(self, index, option) Return the value of OPTION of an embedded window at INDEX. [extrait de window_cget.__doc__]
window_config(self, index, cnf=None, **kw) Configure an embedded window at INDEX. [extrait de window_configure.__doc__]
window_configure(self, index, cnf=None, **kw) Configure an embedded window at INDEX. [extrait de window_configure.__doc__]
window_create(self, index, cnf={}, **kw) Create a window at INDEX. [extrait de window_create.__doc__]
window_names(self) Return all names of embedded windows in this widget. [extrait de window_names.__doc__]
yview_pickplace(self, *what) Obsolete function, use see. [extrait de yview_pickplace.__doc__]

Méthodes héritées de la classe YView

__init_subclass__, __subclasshook__, yview, yview_moveto, yview_scroll

Méthodes héritées de la classe XView

__init_subclass__, __subclasshook__, xview, xview_moveto, xview_scroll

Méthodes héritées de la classe Widget

__init_subclass__, __subclasshook__

Méthodes héritées de la classe Grid

__init_subclass__, __subclasshook__, config, configure, forget, grid, grid_configure, grid_forget, grid_info, grid_remove, info

Méthodes héritées de la classe Place

__init_subclass__, __subclasshook__, config, configure, forget, info, place, place_configure, place_forget, place_info

Méthodes héritées de la classe Pack

__init_subclass__, __subclasshook__, config, configure, forget, info, pack, pack_configure, pack_forget, pack_info

Méthodes héritées de la classe BaseWidget

__init_subclass__, __subclasshook__, destroy

Méthodes héritées de la classe Misc

__init_subclass__, __repr__, __str__, __subclasshook__, after, after_cancel, after_idle, anchor, bell, bind, bind_all, bind_class, bindtags, cget, clipboard_append, clipboard_clear, clipboard_get, columnconfigure, config, configure, deletecommand, destroy, event_add, event_delete, event_generate, event_info, focus, focus_displayof, focus_force, focus_get, focus_lastfor, focus_set, getboolean, getdouble, getint, getvar, grab_current, grab_release, grab_set, grab_set_global, grab_status, grid_anchor, grid_bbox, grid_columnconfigure, grid_location, grid_propagate, grid_rowconfigure, grid_size, grid_slaves, image_types, info_patchlevel, 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_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

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__