Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding events for ttk widgets.

2 views
Skip to first unread message

rozen

unread,
Oct 4, 2008, 9:36:15 PM10/4/08
to
Hi,
I am looking for a programming method of learning the events available
to a widget. I am using Tcl/Tk 8.5.4 on Ubuntu 7.04.

For instance, if I execute the following code:

> wish
% info tclversion
8.5
% bind Treeview
<Button-4> <Button-5> <Shift-Button-4> <Shift-Button-5> <Control-
Button-1> <Shift-Button-1> <Key-space> <Key-Return> <Key-Next> <Key-
Prior> <Key-Left> <Key-Right> <Key-Down> <Key-Up> <B1-Motion>
<ButtonRelease-1> <Double-Button-1> <Button-1> <Leave> <B1-Leave>
<Motion>


I was hoping to see in the above list the virtual events :

<<TreeviewSelect>>, <<TreeviewOpen>>, and <<TreeviewClose>> which

are listed in the Treeview man page. Is there a way of a list of
virtual events associated with a widget?

Thanks in Advance,
Don

Donal K. Fellows

unread,
Oct 5, 2008, 8:13:50 AM10/5/08
to
rozen wrote:
> I am looking for a programming method of learning the events available
> to a widget.
[...]

> I was hoping to see in the above list the virtual events :
>
> <<TreeviewSelect>>, <<TreeviewOpen>>, and <<TreeviewClose>> which
>
> are listed in the Treeview man page. Is there a way of a list of
> virtual events associated with a widget?

At the software level? No, because it's not a closed set (you can do
your own easily enough). That's *why* the ones Tk generates are
documented on the manual pages.

Donal.

0 new messages