
88 Perl/Tk Pocket Reference
*KeyPress, KeyRelease, ButtonPress, ButtonRelease, Enter,
Leave, Motion
†Expose, Configure, Gravity, Reparent
$widget->break;
Exit callback and short-circuit bindtags search.
$eventStructure = $widget->XEvent;
Fetches the X11 event structure. Calling $eventStructure -
> code; returns the value of the X11 event field code (for
code see above).
$eventStructure = $Tk::event;
A binding can localize the X11 event structure with
$Tk::event rather than calling XEvent.
$eventField = Ev(Code);
Binding callbacks can use the Ev() construct as arguments
to the callback. When the callback is triggered Ev(code)is
replaced by the value of the X11 event field code (for code
see above).
16. Geometry Management
The pack Command
$widget->pack(?-option => value);
Details how $widget should be managed by the packer.
Table 1: Event Fields (continued)
eventGenerate() Option Code Valid Events
-place => where
p
Circulate
-root => window
R
*
-rootx => coord
X
*
-rooty => coord
Y
*
-sendevent => boolean
E
all events
-serial => number
#
all events
-state => state
s
all events
-subwindow => window
S
*
-time => integer
t
*, Property
-x => coord
x
*, †
-y => coord
y
*, †