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 « Misc »

Informations générales

Héritage

builtins.object
    Misc

Définition

class Misc(builtins.object):

help(Misc)

Internal class.

    Base class which defines methods common for interior widgets.

Constructeur(s)

Signature du constructeur Description
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des opérateurs

Signature de l'opérateur Description
__getitem__(self, key) Return the resource value for a KEY given as string. [extrait de cget.__doc__]
__setitem__(self, key, value)

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
__repr__(self)
__str__(self) Return the window path name of this widget. [extrait de __str__.__doc__]
after(self, ms, func=None, *args) Call function once after given time. [extrait de after.__doc__]
after_cancel(self, id) Cancel scheduling of function identified with ID. [extrait de after_cancel.__doc__]
after_idle(self, func, *args) Call FUNC once if the Tcl main loop has no event to [extrait de after_idle.__doc__]
anchor(self, anchor=None) The anchor value controls how to place the grid within the [extrait de grid_anchor.__doc__]
bbox(self, column=None, row=None, col2=None, row2=None) Return a tuple of integer coordinates for the bounding [extrait de grid_bbox.__doc__]
bell(self, displayof=0) Ring a display's bell. [extrait de bell.__doc__]
bind(self, sequence=None, func=None, add=None) Bind to this widget at event SEQUENCE a call to function FUNC. [extrait de bind.__doc__]
bind_all(self, sequence=None, func=None, add=None) Bind to all widgets at an event SEQUENCE a call to function FUNC. [extrait de bind_all.__doc__]
bind_class(self, className, sequence=None, func=None, add=None) Bind to widgets with bindtag CLASSNAME at event [extrait de bind_class.__doc__]
bindtags(self, tagList=None) Set or get the list of bindtags for this widget. [extrait de bindtags.__doc__]
cget(self, key) Return the resource value for a KEY given as string. [extrait de cget.__doc__]
clipboard_append(self, string, **kw) Append STRING to the Tk clipboard. [extrait de clipboard_append.__doc__]
clipboard_clear(self, **kw) Clear the data in the Tk clipboard. [extrait de clipboard_clear.__doc__]
clipboard_get(self, **kw) Retrieve data from the clipboard on window's display. [extrait de clipboard_get.__doc__]
columnconfigure(self, index, cnf={}, **kw) Configure column INDEX of a grid. [extrait de grid_columnconfigure.__doc__]
config(self, cnf=None, **kw) Configure resources of a widget. [extrait de configure.__doc__]
configure(self, cnf=None, **kw) Configure resources of a widget. [extrait de configure.__doc__]
deletecommand(self, name) Internal function. [extrait de deletecommand.__doc__]
destroy(self) Internal function. [extrait de destroy.__doc__]
event_add(self, virtual, *sequences) Bind a virtual event VIRTUAL (of the form <<Name>>) [extrait de event_add.__doc__]
event_delete(self, virtual, *sequences) Unbind a virtual event VIRTUAL from SEQUENCE. [extrait de event_delete.__doc__]
event_generate(self, sequence, **kw) Generate an event SEQUENCE. Additional [extrait de event_generate.__doc__]
event_info(self, virtual=None) Return a list of all virtual events or the information [extrait de event_info.__doc__]
focus(self) Direct input focus to this widget. [extrait de focus_set.__doc__]
focus_displayof(self) Return the widget which has currently the focus on the [extrait de focus_displayof.__doc__]
focus_force(self) Direct input focus to this widget even if the [extrait de focus_force.__doc__]
focus_get(self) Return the widget which has currently the focus in the [extrait de focus_get.__doc__]
focus_lastfor(self) Return the widget which would have the focus if top level [extrait de focus_lastfor.__doc__]
focus_set(self) Direct input focus to this widget. [extrait de focus_set.__doc__]
getboolean(self, s) Return a boolean value for Tcl boolean values true and false given as parameter. [extrait de getboolean.__doc__]
getdouble(self, s)
getint(self, s)
getvar(self, name='PY_VAR') Return value of Tcl variable NAME. [extrait de getvar.__doc__]
grab_current(self) Return widget which has currently the grab in this application [extrait de grab_current.__doc__]
grab_release(self) Release grab for this widget if currently set. [extrait de grab_release.__doc__]
grab_set(self) Set grab for this widget. [extrait de grab_set.__doc__]
grab_set_global(self) Set global grab for this widget. [extrait de grab_set_global.__doc__]
grab_status(self) Return None, "local" or "global" if this widget has [extrait de grab_status.__doc__]
grid_anchor(self, anchor=None) The anchor value controls how to place the grid within the [extrait de grid_anchor.__doc__]
grid_bbox(self, column=None, row=None, col2=None, row2=None) Return a tuple of integer coordinates for the bounding [extrait de grid_bbox.__doc__]
grid_columnconfigure(self, index, cnf={}, **kw) Configure column INDEX of a grid. [extrait de grid_columnconfigure.__doc__]
grid_location(self, x, y) Return a tuple of column and row which identify the cell [extrait de grid_location.__doc__]
grid_propagate(self, flag=['_noarg_']) Set or get the status for propagation of geometry information. [extrait de grid_propagate.__doc__]
grid_rowconfigure(self, index, cnf={}, **kw) Configure row INDEX of a grid. [extrait de grid_rowconfigure.__doc__]
grid_size(self) Return a tuple of the number of column and rows in the grid. [extrait de grid_size.__doc__]
grid_slaves(self, row=None, column=None) Return a list of all slaves of this widget [extrait de grid_slaves.__doc__]
image_names(self) Return a list of all existing image names. [extrait de image_names.__doc__]
image_types(self) Return a list of all available image types (e.g. photo bitmap). [extrait de image_types.__doc__]
info_patchlevel(self) Returns the exact version of the Tcl library. [extrait de info_patchlevel.__doc__]
keys(self) Return a list of all resource names of this widget. [extrait de keys.__doc__]
lift(self, aboveThis=None) Raise this widget in the stacking order. [extrait de tkraise.__doc__]
lower(self, belowThis=None) Lower this widget in the stacking order. [extrait de lower.__doc__]
mainloop(self, n=0) Call the mainloop of Tk. [extrait de mainloop.__doc__]
nametowidget(self, name) Return the Tkinter instance of a widget identified by [extrait de nametowidget.__doc__]
option_add(self, pattern, value, priority=None) Set a VALUE (second parameter) for an option [extrait de option_add.__doc__]
option_clear(self) Clear the option database. [extrait de option_clear.__doc__]
option_get(self, name, className) Return the value for an option NAME for this widget [extrait de option_get.__doc__]
option_readfile(self, fileName, priority=None) Read file FILENAME into the option database. [extrait de option_readfile.__doc__]
pack_propagate(self, flag=['_noarg_']) Set or get the status for propagation of geometry information. [extrait de pack_propagate.__doc__]
pack_slaves(self) Return a list of all slaves of this widget [extrait de pack_slaves.__doc__]
place_slaves(self) Return a list of all slaves of this widget [extrait de place_slaves.__doc__]
propagate(self, flag=['_noarg_']) Set or get the status for propagation of geometry information. [extrait de pack_propagate.__doc__]
quit(self) Quit the Tcl interpreter. All widgets will be destroyed. [extrait de quit.__doc__]
register(self, func, subst=None, needcleanup=1) Return a newly created Tcl function. If this [extrait de _register.__doc__]
rowconfigure(self, index, cnf={}, **kw) Configure row INDEX of a grid. [extrait de grid_rowconfigure.__doc__]
selection_clear(self, **kw) Clear the current X selection. [extrait de selection_clear.__doc__]
selection_get(self, **kw) Return the contents of the current X selection. [extrait de selection_get.__doc__]
selection_handle(self, command, **kw) Specify a function COMMAND to call if the X [extrait de selection_handle.__doc__]
selection_own(self, **kw) Become owner of X selection. [extrait de selection_own.__doc__]
selection_own_get(self, **kw) Return owner of X selection. [extrait de selection_own_get.__doc__]
send(self, interp, cmd, *args) Send Tcl command CMD to different interpreter INTERP to be executed. [extrait de send.__doc__]
setvar(self, name='PY_VAR', value='1') Set Tcl variable NAME to VALUE. [extrait de setvar.__doc__]
size(self) Return a tuple of the number of column and rows in the grid. [extrait de grid_size.__doc__]
slaves(self) Return a list of all slaves of this widget [extrait de pack_slaves.__doc__]
tk_bisque(self) Change the color scheme to light brown as used in Tk 3.6 and before. [extrait de tk_bisque.__doc__]
tk_focusFollowsMouse(self) The widget under mouse will get automatically focus. Can not [extrait de tk_focusFollowsMouse.__doc__]
tk_focusNext(self) Return the next widget in the focus order which follows [extrait de tk_focusNext.__doc__]
tk_focusPrev(self) Return previous widget in the focus order. See tk_focusNext for details. [extrait de tk_focusPrev.__doc__]
tk_setPalette(self, *args, **kw) Set a new color scheme for all widget elements. [extrait de tk_setPalette.__doc__]
tk_strictMotif(self, boolean=None) Set Tcl internal variable, whether the look and feel [extrait de tk_strictMotif.__doc__]
tkraise(self, aboveThis=None) Raise this widget in the stacking order. [extrait de tkraise.__doc__]
unbind(self, sequence, funcid=None) Unbind for this widget for event SEQUENCE the [extrait de unbind.__doc__]
unbind_all(self, sequence) Unbind for all widgets for event SEQUENCE all functions. [extrait de unbind_all.__doc__]
unbind_class(self, className, sequence) Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE [extrait de unbind_class.__doc__]
update(self) Enter event loop until all pending events have been processed by Tcl. [extrait de update.__doc__]
update_idletasks(self) Enter event loop until all idle callbacks have been called. This [extrait de update_idletasks.__doc__]
wait_variable(self, name='PY_VAR') Wait until the variable is modified. [extrait de wait_variable.__doc__]
wait_visibility(self, window=None) Wait until the visibility of a WIDGET changes [extrait de wait_visibility.__doc__]
wait_window(self, window=None) Wait until a WIDGET is destroyed. [extrait de wait_window.__doc__]
waitvar(self, name='PY_VAR') Wait until the variable is modified. [extrait de wait_variable.__doc__]
winfo_atom(self, name, displayof=0) Return integer which represents atom NAME. [extrait de winfo_atom.__doc__]
winfo_atomname(self, id, displayof=0) Return name of atom with identifier ID. [extrait de winfo_atomname.__doc__]
winfo_cells(self) Return number of cells in the colormap for this widget. [extrait de winfo_cells.__doc__]
winfo_children(self) Return a list of all widgets which are children of this widget. [extrait de winfo_children.__doc__]
winfo_class(self) Return window class name of this widget. [extrait de winfo_class.__doc__]
winfo_colormapfull(self) Return True if at the last color request the colormap was full. [extrait de winfo_colormapfull.__doc__]
winfo_containing(self, rootX, rootY, displayof=0) Return the widget which is at the root coordinates ROOTX, ROOTY. [extrait de winfo_containing.__doc__]
winfo_depth(self) Return the number of bits per pixel. [extrait de winfo_depth.__doc__]
winfo_exists(self) Return true if this widget exists. [extrait de winfo_exists.__doc__]
winfo_fpixels(self, number) Return the number of pixels for the given distance NUMBER [extrait de winfo_fpixels.__doc__]
winfo_geometry(self) Return geometry string for this widget in the form "widthxheight+X+Y". [extrait de winfo_geometry.__doc__]
winfo_height(self) Return height of this widget. [extrait de winfo_height.__doc__]
winfo_id(self) Return identifier ID for this widget. [extrait de winfo_id.__doc__]
winfo_interps(self, displayof=0) Return the name of all Tcl interpreters for this display. [extrait de winfo_interps.__doc__]
winfo_ismapped(self) Return true if this widget is mapped. [extrait de winfo_ismapped.__doc__]
winfo_manager(self) Return the window manager name for this widget. [extrait de winfo_manager.__doc__]
winfo_name(self) Return the name of this widget. [extrait de winfo_name.__doc__]
winfo_parent(self) Return the name of the parent of this widget. [extrait de winfo_parent.__doc__]
winfo_pathname(self, id, displayof=0) Return the pathname of the widget given by ID. [extrait de winfo_pathname.__doc__]
winfo_pixels(self, number) Rounded integer value of winfo_fpixels. [extrait de winfo_pixels.__doc__]
winfo_pointerx(self) Return the x coordinate of the pointer on the root window. [extrait de winfo_pointerx.__doc__]
winfo_pointerxy(self) Return a tuple of x and y coordinates of the pointer on the root window. [extrait de winfo_pointerxy.__doc__]
winfo_pointery(self) Return the y coordinate of the pointer on the root window. [extrait de winfo_pointery.__doc__]
winfo_reqheight(self) Return requested height of this widget. [extrait de winfo_reqheight.__doc__]
winfo_reqwidth(self) Return requested width of this widget. [extrait de winfo_reqwidth.__doc__]
winfo_rgb(self, color) Return a tuple of integer RGB values in range(65536) for color in this widget. [extrait de winfo_rgb.__doc__]
winfo_rootx(self) Return x coordinate of upper left corner of this widget on the [extrait de winfo_rootx.__doc__]
winfo_rooty(self) Return y coordinate of upper left corner of this widget on the [extrait de winfo_rooty.__doc__]
winfo_screen(self) Return the screen name of this widget. [extrait de winfo_screen.__doc__]
winfo_screencells(self) Return the number of the cells in the colormap of the screen [extrait de winfo_screencells.__doc__]
winfo_screendepth(self) Return the number of bits per pixel of the root window of the [extrait de winfo_screendepth.__doc__]
winfo_screenheight(self) Return the number of pixels of the height of the screen of this widget [extrait de winfo_screenheight.__doc__]
winfo_screenmmheight(self) Return the number of pixels of the height of the screen of [extrait de winfo_screenmmheight.__doc__]
winfo_screenmmwidth(self) Return the number of pixels of the width of the screen of [extrait de winfo_screenmmwidth.__doc__]
winfo_screenvisual(self) Return one of the strings directcolor, grayscale, pseudocolor, [extrait de winfo_screenvisual.__doc__]
winfo_screenwidth(self) Return the number of pixels of the width of the screen of [extrait de winfo_screenwidth.__doc__]
winfo_server(self) Return information of the X-Server of the screen of this widget in [extrait de winfo_server.__doc__]
winfo_toplevel(self) Return the toplevel widget of this widget. [extrait de winfo_toplevel.__doc__]
winfo_viewable(self) Return true if the widget and all its higher ancestors are mapped. [extrait de winfo_viewable.__doc__]
winfo_visual(self) Return one of the strings directcolor, grayscale, pseudocolor, [extrait de winfo_visual.__doc__]
winfo_visualid(self) Return the X identifier for the visual for this widget. [extrait de winfo_visualid.__doc__]
winfo_visualsavailable(self, includeids=False) Return a list of all visuals available for the screen [extrait de winfo_visualsavailable.__doc__]
winfo_vrootheight(self) Return the height of the virtual root window associated with this [extrait de winfo_vrootheight.__doc__]
winfo_vrootwidth(self) Return the width of the virtual root window associated with this [extrait de winfo_vrootwidth.__doc__]
winfo_vrootx(self) Return the x offset of the virtual root relative to the root [extrait de winfo_vrootx.__doc__]
winfo_vrooty(self) Return the y offset of the virtual root relative to the root [extrait de winfo_vrooty.__doc__]
winfo_width(self) Return the width of this widget. [extrait de winfo_width.__doc__]
winfo_x(self) Return the x coordinate of the upper left corner of this widget [extrait de winfo_x.__doc__]
winfo_y(self) Return the y coordinate of the upper left corner of this widget [extrait de winfo_y.__doc__]

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

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