Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Unspecified error with Quick Draw program
I have typed in the quick draw program from p221 of Mastering Perl/Tk,
modifying it a bit to allow use strict, use warnings (on Windows XP)

The following error is given when I try to run it:

at C:/Perl/site/lib/Tk.pm line 228.

i.e. There is an error but no message. By use of print statements and eval I
have deduced that it is the line:

$canvas->bind("<Button-1>", [\&start_drawing, Ev('x'), Ev('y')]);

that is causing the error in the module, but I cannot see why.

Any thoughts?



Report this thread to moderator Post Follow-up to this message
Old Post
Dave
05-11-05 01:57 AM


Re: Unspecified error with Quick Draw program
"Dave" <daveandniki@ntlworld.com> wrote in message
news:A07ge.706$yY4.683@newsfe5-win.ntli.net...
>I have typed in the quick draw program from p221 of Mastering Perl/Tk,
>modifying it a bit to allow use strict, use warnings (on Windows XP)
>
> The following error is given when I try to run it:
>
> at C:/Perl/site/lib/Tk.pm line 228.
>
> i.e. There is an error but no message. By use of print statements and eval
> I have deduced that it is the line:
>
> $canvas->bind("<Button-1>", [\&start_drawing, Ev('x'), Ev('y')]);
>
> that is causing the error in the module, but I cannot see why.
>
> Any thoughts?
>
>

Sorry I posted too hastily and found the answer myself. The code seems to be
in error and replacing the bind method by CanvasBind fixes it.




Report this thread to moderator Post Follow-up to this message
Old Post
Dave
05-11-05 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:53 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.