python list of all tkinter events

Solutions on MaxInterview for python list of all tkinter events by the best coders in the world

showing results for - "python list of all tkinter events"
Victoria
05 Jul 2019
1<Button-1>        Button 1 is the leftmost button, button 2 is the middle button
2                  (where available), and button 3 the rightmost button.
3
4                  <Button-1>, <ButtonPress-1>, and <1> are all synonyms.
5
6                  For mouse wheel support under Linux, use Button-4 (scroll
7                  up) and Button-5 (scroll down)
8
9<B1-Motion>       The mouse is moved, with mouse button 1 being held down (use
10                  B2 for the middle button, B3 for the right button).
11
12<ButtonRelease-1> Button 1 was released. This is probably a better choice in
13                  most cases than the Button event, because if the user
14                  accidentally presses the button, they can move the mouse
15                  off the widget to avoid setting off the event.
16
17<Double-Button-1> Button 1 was double clicked. You can use Double or Triple as
18                  prefixes.
19
20<Enter>           The mouse pointer entered the widget (this event doesn’t mean
21                  that the user pressed the Enter key!).
22
23<Leave>           The mouse pointer left the widget.
24
25<FocusIn>         Keyboard focus was moved to this widget, or to a child of
26                  this widget.
27
28<FocusOut>        Keyboard focus was moved from this widget to another widget.
29
30<Return>          The user pressed the Enter key. For an ordinary 102-key
31                  PC-style keyboard, the special keys are Cancel (the Break
32                  key), BackSpace, Tab, Return(the Enter key), Shift_L (any
33                  Shift key), Control_L (any Control key), Alt_L (any Alt key),
34                  Pause, Caps_Lock, Escape, Prior (Page Up), Next (Page Down),
35                  End, Home, Left, Up, Right, Down, Print, Insert, Delete, F1,
36                  F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Num_Lock, and
37                  Scroll_Lock.
38
39<Key>             The user pressed any key. The key is provided in the char
40                  member of the event object passed to the callback (this is an
41                  empty string for special keys).
42
43a                 The user typed an “a”. Most printable characters can be used
44                  as is. The exceptions are space (<space>) and less than
45                  (<less>). Note that 1 is a keyboard binding, while <1> is a
46                  button binding.
47
48<Shift-Up>        The user pressed the Up arrow, while holding the Shift key
49                  pressed. You can use prefixes like Alt, Shift, and Control.
50
51<Configure>       The widget changed size (or location, on some platforms). The
52                  new size is provided in the width and height attributes of
53                  the event object passed to the callback.
54
55<Activate>        A widget is changing from being inactive to being active.
56                  This refers to changes in the state option of a widget such
57                  as a button changing from inactive (grayed out) to active.
58
59
60<Deactivate>      A widget is changing from being active to being inactive.
61                  This refers to changes in the state option of a widget such
62                  as a radiobutton changing from active to inactive (grayed out).
63
64<Destroy>         A widget is being destroyed.
65
66<Expose>          This event occurs whenever at least some part of your
67                  application or widget becomes visible after having been
68                  covered up by another window.
69
70<KeyRelease>      The user let up on a key.
71
72<Map>             A widget is being mapped, that is, made visible in the
73                  application. This will happen, for example, when you call the
74                  widget's .grid() method.
75
76<Motion>          The user moved the mouse pointer entirely within a widget.
77
78<MouseWheel>      The user moved the mouse wheel up or down. At present, this
79                  binding works on Windows and MacOS, but not under Linux.
80
81<Unmap>           A widget is being unmapped and is no longer visible.
82
83<Visibility>      Happens when at least some part of the application window
84                  becomes visible on the screen.
85