From: Donald Arseneau on 10 Mar 2010 21:20 On Mar 10, 6:44 am, Kevin Walzer <k...(a)codebykevin.com> wrote: > Is there a way to tell if a Tk command was invoked from a menu item or > from a button? Make the button and the menu item invoke different, but similar, commands. The difference could be as simple as an extra argument specifying the source. Donald Arseneau
From: Kevin Walzer on 10 Mar 2010 22:43 On 3/10/10 11:19 AM, Helmut Giese wrote: > In short, it is not using a built-in feature to detect the kind of > invocation (which I don't know if it exists), but rather you yourself > provide the information via an additional parameter. > HTH > Helmut Giese Thanks--adding an extra parameter and loading the correct dialog settings with a switch statement did the trick. -- Kevin Walzer Code by Kevin http://www.codebykevin.com
First
|
Prev
|
Pages: 1 2 Prev: How to detect begin and end of a resize operation Next: TkPath maintainer? |