in reply to Perl/tk error I can't figure out

Your code works just fine for me on Linux. What exactly is your problem? If you are just starting to learn, you might be better off concentrating on Gtk2, as mentioned above. It is better than Tk, and has an active future.

As far as your error

no event type or button # or keysym

It looks like you copy-and-pasted wrong, and got a end-of-line comment '#' somewhere in the code.


I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: Perl/tk error I can't figure out
by ttlgreen (Sexton) on Feb 01, 2009 at 21:19 UTC
    > It looks like you copy-and-pasted wrong, and got a end-of-line comment '#' somewhere in the code.

    Yeah I thought that at first too.. Trust me it's no typo. I even tried downloading the file from the TK tutorial here in the tutorials section rather than copying just as a sanity check and it produced the same result. Must be something odd about my configuration that's all I can figure.

      something odd about my configuration that's all I can figure

      Yeah, if you google for "no event type or button # or keysym while executing", you will find that many others have reported this as an installation problem of one sort or another on certain platforms.


      I'm not really a human, but I play one on earth Remember How Lucky You Are