tkinter资料整理+笔记(大全)
- tkinter
- 一、常量
- 二、模块 module
- 三、类 Class
- TclError
- Event
- Variable
-
- 99 type Variable
-
- 1 str __module__ tkinter
- 2 str __doc__
- 3 function __init__
- 4 function __del__
- 5 function __str__
- 6 function __eq__
- 7 getset_descriptor __dict__
- 8 getset_descriptor __weakref__
- 9 NoneType __hash__ None
- 10 function set
- 11 function initialize
- 12 function get
- 13 function trace_add
- 14 function trace_remove
- 15 function trace_info
- 16 function trace_variable
- 17 function trace
- 18 function trace_vdelete
- 19 function trace_vinfo
- StringVar
- IntVar
- DoubleVar
- BooleanVar
- getint | int
-
- 104 type getint
-
- 1 wrapper_descriptor __repr__
- 2 wrapper_descriptor __hash__
- 3 wrapper_descriptor __str__
- 4 wrapper_descriptor __getattribute__
- 5 wrapper_descriptor __lt__
- 6 wrapper_descriptor __le__
- 7 wrapper_descriptor __eq__
- 8 wrapper_descriptor __ne__
- 9 wrapper_descriptor __gt__
- 10 wrapper_descriptor __ge__
- 11 wrapper_descriptor __add__
- 12 wrapper_descriptor __radd__
- 13 wrapper_descriptor __sub__
- 14 wrapper_descriptor __rsub__
- 15 wrapper_descriptor __mul__
- 16 wrapper_descriptor __rmul__
- 17 wrapper_descriptor __mod__
- 18 wrapper_descriptor __rmod__
- 19 wrapper_descriptor __divmod__
- 20 wrapper_descriptor __rdivmod__
- 21 wrapper_descriptor __pow__
- 22 wrapper_descriptor __rpow__
- 23 wrapper_descriptor __neg__
- 24 wrapper_descriptor __pos__
- 25 wrapper_descriptor __abs__
- 26 wrapper_descriptor __bool__
- 27 wrapper_descriptor __invert__
- 28 wrapper_descriptor __lshift__
- 29 wrapper_descriptor __rlshift__
- 30 wrapper_descriptor __rshift__
- 31 wrapper_descriptor __rrshift__
- 32 wrapper_descriptor __and__
- 33 wrapper_descriptor __rand__
- 34 wrapper_descriptor __xor__
- 35 wrapper_descriptor __rxor__
- 36 wrapper_descriptor __or__
- 37 wrapper_descriptor __ror__
- 38 wrapper_descriptor __int__
- 39 wrapper_descriptor __float__
- 40 wrapper_descriptor __floordiv__
- 41 wrapper_descriptor __rfloordiv__
- 42 wrapper_descriptor __truediv__
- 43 wrapper_descriptor __rtruediv__
- 44 wrapper_descriptor __index__
- 45 builtin_function_or_method __new__
- 46 method_descriptor __trunc__
- 47 method_descriptor __floor__
- 48 method_descriptor __ceil__
- 49 method_descriptor __round__
- 50 method_descriptor __getnewargs__
- 51 method_descriptor __format__
- 52 method_descriptor __sizeof__
- 53 str __doc__
- 54 method_descriptor conjugate
- 55 method_descriptor bit_length
- 56 method_descriptor to_bytes
- 57 classmethod_descriptor from_bytes
- 58 getset_descriptor real
- 59 getset_descriptor imag
- 60 getset_descriptor numerator
- 61 getset_descriptor denominator
- getdouble
-
- 105 type getdouble
-
- 1 wrapper_descriptor __repr__
- 2 wrapper_descriptor __hash__
- 3 wrapper_descriptor __str__
- 4 wrapper_descriptor __getattribute__
- 5 wrapper_descriptor __lt__
- 6 wrapper_descriptor __le__
- 7 wrapper_descriptor __eq__
- 8 wrapper_descriptor __ne__
- 9 wrapper_descriptor __gt__
- 10 wrapper_descriptor __ge__
- 11 wrapper_descriptor __add__
- 12 wrapper_descriptor __radd__
- 13 wrapper_descriptor __sub__
- 14 wrapper_descriptor __rsub__
- 15 wrapper_descriptor __mul__
- 16 wrapper_descriptor __rmul__
- 17 wrapper_descriptor __mod__
- 18 wrapper_descriptor __rmod__
- 19 wrapper_descriptor __divmod__
- 20 wrapper_descriptor __rdivmod__
- 21 wrapper_descriptor __pow__
- 22 wrapper_descriptor __rpow__
- 23 wrapper_descriptor __neg__
- 24 wrapper_descriptor __pos__
- 25 wrapper_descriptor __abs__
- 26 wrapper_descriptor __bool__
- 27 wrapper_descriptor __int__
- 28 wrapper_descriptor __float__
- 29 wrapper_descriptor __floordiv__
- 30 wrapper_descriptor __rfloordiv__
- 31 wrapper_descriptor __truediv__
- 32 wrapper_descriptor __rtruediv__
- 33 builtin_function_or_method __new__
- 34 method_descriptor __trunc__
- 35 method_descriptor __round__
- 36 method_descriptor __getnewargs__
- 37 classmethod_descriptor __getformat__
- 38 classmethod_descriptor __set_format__
- 39 method_descriptor __format__
- 40 str __doc__
- 41 method_descriptor conjugate
- 42 method_descriptor as_integer_ratio
- 43 classmethod_descriptor fromhex
- 44 method_descriptor hex
- 45 method_descriptor is_integer
- 46 getset_descriptor real
- 47 getset_descriptor imag
- Misc
-
- 106 type Misc
-
- 1 str __module__ tkinter
- 2 str __doc__
- 3 function __getitem__
- 4 function __setitem__
- 5 function __str__
- 6 function __repr__
- 7 getset_descriptor __dict__
- 8 getset_descriptor __weakref__
- 9 function destroy
- 10 function deletecommand
- 11 function tk_strictMotif
- 12 function tk_bisque
- 13 function tk_setPalette
- 14 function wait_variable
- 15 function waitvar
- 16 function wait_window
- 17 function wait_visibility
- 18 function setvar
- 19 function getvar
- 20 function getint
- 21 function getdouble
- 22 function getboolean
- 23 function focus_set
- 24 function focus
- 25 function focus_force
- 26 function focus_get
- 27 function focus_displayof
- 28 function focus_lastfor
- 29 function tk_focusFollowsMouse
- 30 function tk_focusNext
- 31 function tk_focusPrev
- 32 function after
- 33 function after_idle
- 34 function after_cancel
- 35 function bell
- 36 function clipboard_get
- 37 function clipboard_clear
- 38 function clipboard_append
- 39 function grab_current
- 40 function grab_release
- 41 function grab_set
- 42 function grab_set_global
- 43 function grab_status
- 44 function option_add
- 45 function option_clear
- 46 function option_get
- 47 function option_readfile
- 48 function selection_clear
- 49 function selection_get
- 50 function selection_handle
- 51 function selection_own
- 52 function selection_own_get
- 53 function send
- 54 function lower
- 55 function tkraise
- 56 function lift
- 57 function winfo_atom
- 58 function winfo_atomname
- 59 function winfo_cells
- 60 function winfo_children
- 61 function winfo_class
- 62 function winfo_colormapfull
- 63 function winfo_containing
- 64 function winfo_depth
- 65 function winfo_exists
- 66 function winfo_fpixels
- 67 function winfo_geometry
- 68 function winfo_height
- 69 function winfo_id
- 70 function winfo_interps
- 71 function winfo_ismapped
- 72 function winfo_manager
- 73 function winfo_name
- 74 function winfo_parent
- 75 function winfo_pathname
- 76 function winfo_pixels
- 77 function winfo_pointerx
- 78 function winfo_pointerxy
- 79 function winfo_pointery
- 80 function winfo_reqheight
- 81 function winfo_reqwidth
- 82 function winfo_rgb
- 83 function winfo_rootx
- 84 function winfo_rooty
- 85 function winfo_screen
- 86 function winfo_screencells
- 87 function winfo_screendepth
- 88 function winfo_screenheight
- 89 function winfo_screenmmheight
- 90 function winfo_screenmmwidth
- 91 function winfo_screenvisual
- 92 function winfo_screenwidth
- 93 function winfo_server
- 94 function winfo_toplevel
- 95 function winfo_viewable
- 96 function winfo_visual
- 97 function winfo_visualid
- 98 function winfo_visualsavailable
- 99 function winfo_vrootheight
- 100 function winfo_vrootwidth
- 101 function winfo_vrootx
- 102 function winfo_vrooty
- 103 function winfo_width
- 104 function winfo_x
- 105 function winfo_y
- 106 function update
- 107 function update_idletasks
- 108 function bindtags
- 109 function bind
- 110 function unbind
- 111 function bind_all
- 112 function unbind_all
- 113 function bind_class
- 114 function unbind_class
- 115 function mainloop
- 116 function quit
- 117 function nametowidget
- 118 function register
- 119 function configure
- 120 function config
- 121 function cget
- 122 function keys
- 123 function pack_propagate
- 124 function propagate
- 125 function pack_slaves
- 126 function slaves
- 127 function place_slaves
- 128 function grid_anchor
- 129 function anchor
- 130 function grid_bbox
- 131 function bbox
- 132 function grid_columnconfigure
- 133 function columnconfigure
- 134 function grid_location
- 135 function grid_propagate
- 136 function grid_rowconfigure
- 137 function rowconfigure
- 138 function grid_size
- 139 function size
- 140 function grid_slaves
- 141 function event_add
- 142 function event_delete
- 143 function event_generate
- 144 function event_info
- 145 function image_names
- 146 function image_types
- CallWrapper
- XView
- YView
- Wm
-
- 110 type Wm
-
- 1 str __module__ tkinter
- 2 str __doc__
- 3 getset_descriptor __dict__
- 4 getset_descriptor __weakref__
- 5 function wm_aspect
- 6 function aspect
- 7 function wm_attributes
- 8 function attributes
- 9 function wm_client
- 10 function client
- 11 function wm_colormapwindows
- 12 function colormapwindows
- 13 function wm_command
- 14 function command
- 15 function wm_deiconify
- 16 function deiconify
- 17 function wm_focusmodel
- 18 function focusmodel
- 19 function wm_forget
- 20 function forget
- 21 function wm_frame
- 22 function frame
- 23 function wm_geometry
- 24 function geometry
- 25 function wm_grid
- 26 function grid
- 27 function wm_group
- 28 function group
- 29 function wm_iconbitmap
- 30 function iconbitmap
- 31 function wm_iconify
- 32 function iconify
- 33 function wm_iconmask
- 34 function iconmask
- 35 function wm_iconname
- 36 function iconname
- 37 function wm_iconphoto
- 38 function iconphoto
- 39 function wm_iconposition
- 40 function iconposition
- 41 function wm_iconwindow
- 42 function iconwindow
- 43 function wm_manage
- 44 function manage
- 45 function wm_maxsize
- 46 function maxsize
- 47 function wm_minsize
- 48 function minsize
- 49 function wm_overrideredirect
- 50 function overrideredirect
- 51 function wm_positionfrom
- 52 function positionfrom
- 53 function wm_protocol
- 54 function protocol
- 55 function wm_resizable
- 56 function resizable
- 57 function wm_sizefrom
- 58 function sizefrom
- 59 function wm_state
- 60 function state
- 61 function wm_title
- 62 function title
- 63 function wm_transient
- 64 function transient
- 65 function wm_withdraw
- 66 function withdraw
- Tk
- Pack
-
- 112 type Pack
-
- 1 str __module__ tkinter
- 2 str __doc__ Geometry manager Pack.
- 3 getset_descriptor __dict__
- 4 getset_descriptor __weakref__
- 5 function pack_configure
- 6 function pack
- 7 function configure
- 8 function config
- 9 function pack_forget
- 10 function forget
- 11 function pack_info
- 12 function info
- 13 function propagate
- 14 function pack_propagate
- 15 function slaves
- 16 function pack_slaves
- Place
-
- 113 type Place
-
- 1 str __module__ tkinter
- 2 str __doc__ Geometry manager Place.
- 3 getset_descriptor __dict__
- 4 getset_descriptor __weakref__
- 5 function place_configure
- 6 function place
- 7 function configure
- 8 function config
- 9 function place_forget
- 10 function forget
- 11 function place_info
- 12 function info
- 13 function slaves
- 14 function place_slaves
- Grid
-
- 114 type Grid
-
- 1 str __module__ tkinter
- 2 str __doc__ Geometry manager Grid.
- 3 getset_descriptor __dict__
- 4 getset_descriptor __weakref__
- 5 function grid_configure
- 6 function grid
- 7 function configure
- 8 function config
- 9 function bbox
- 10 function grid_bbox
- 11 function columnconfigure
- 12 function grid_columnconfigure
- 13 function grid_forget
- 14 function forget
- 15 function grid_remove
- 16 function grid_info
- 17 function info
- 18 function location
- 19 function grid_location
- 20 function propagate
- 21 function grid_propagate
- 22 function rowconfigure
- 23 function grid_rowconfigure
- 24 function size
- 25 function grid_size
- 26 function slaves
- 27 function grid_slaves
- BaseWidget
- Widget
- Toplevel
- Button
- Canvas
-
- 119 type Canvas
-
- 1 str __module__ tkinter
- 2 str __doc__
- 3 function __init__
- 4 function addtag
- 5 function addtag_above
- 6 function addtag_all
- 7 function addtag_below
- 8 function addtag_closest
- 9 function addtag_enclosed
- 10 function addtag_overlapping
- 11 function addtag_withtag
- 12 function bbox
- 13 function tag_unbind
- 14 function tag_bind
- 15 function canvasx
- 16 function canvasy
- 17 function coords
- 18 function create_arc
- 19 function create_bitmap
- 20 function create_image
- 21 function create_line
- 22 function create_oval
- 23 function create_polygon
- 24 function create_rectangle
- 25 function create_text
- 26 function create_window
- 27 function dchars
- 28 function delete
- 29 function dtag
- 30 function find
- 31 function find_above
- 32 function find_all
- 33 function find_below
- 34 function find_closest
- 35 function find_enclosed
- 36 function find_overlapping
- 37 function find_withtag
- 38 function focus
- 39 function gettags
- 40 function icursor
- 41 function index
- 42 function insert
- 43 function itemcget
- 44 function itemconfigure
- 45 function itemconfig
- 46 function tag_lower
- 47 function lower
- 48 function move
- 49 function postscript
- 50 function tag_raise
- 51 function lift
- 52 function tkraise
- 53 function scale
- 54 function scan_mark
- 55 function scan_dragto
- 56 function select_adjust
- 57 function select_clear
- 58 function select_from
- 59 function select_item
- 60 function select_to
- 61 function type
- Checkbutton
- Entry
-
- 121 type Entry
-
- 1 str __module__ tkinter
- 2 str __doc__
- 3 function __init__
- 4 function delete
- 5 function get
- 6 function icursor
- 7 function index
- 8 function insert
- 9 function scan_mark
- 10 function scan_dragto
- 11 function selection_adjust
- 12 function select_adjust
- 13 function selection_clear
- 14 function select_clear
- 15 function selection_from
- 16 function select_from
- 17 function selection_present
- 18 function select_present
- 19 function selection_range
- 20 function select_range
- 21 function selection_to
- 22 fun