Thread

Posted on Fri May 12 20:41:02 2006 by pstranak
running on Mac OS X 10.3.9

I have installed Tcl and Tcl::Tk from CPAN.
On my linux machine “Hello world” example from Synopsis of the documentation runs fine.
On my Mac a window is drawn, but it does not come into foreground (does not take focus) and its content is empty. No error is written to STDERR and the process must eventually be killed.

I have tried this with numerous example scripts,
with Tcl::Tk or with Tkx,
with ActiveTcl or Tcl/Tk Aqua (http://tcltkaqua.sourceforge.net/)
with pre-installed perl5.8.1 or with perl5.8.8 (from DarwinPorts).
Result is always the same. Pure Tcl/Tk scripts from Wish run just fine, non GUI perl scripts with ‘use Tcl;’ also work.

Any suggestions?

Thanks, Pavel

Direct Responses: 2294 | Write a response
Posted on Fri May 12 21:51:14 2006 by vkon in response to 2292
Re: running on Mac OS X 10.3.9
I have no experience in Mac OS, unfortunately, nor ability to test. Firstly, please use tcltk@perl.org mailing list, there are many chances to find help there. please show what namely code you're running, and your versions. Given that your 'wish' works okay, and Tcl::Tk is just wrapper around Tcl/tk, at least
$interp->Eval("your wish code here");
semantic should work. I suspect the problem is within MainLoop cycle.
Direct Responses: 2295 | Write a response
Posted on Fri May 12 22:25:31 2006 by pstranak in response to 2294
Re: running on Mac OS X 10.3.9

Thanks for your prompt response.
Following example hangs as I have described.
Written in Wish8.4 or 8.5 it works perfectly.

use Tcl::Tk; my $int = new Tcl::Tk; $int->Eval(<<'EOS'); entry .e button .inc -text {increment by Perl} pack .e .inc EOS $int->MainLoop;

——————
I have not found Tcl/Tk list at The Perl Mailing List Database (lists.cpan.org).
All I have found is a Usenet group perl.tcltk at nntp.perl.org (last record 10/10/2005). Should I use that one?

Pavel

Direct Responses: 2296 | Write a response
Posted on Fri May 12 22:50:37 2006 by vkon in response to 2295
Re: running on Mac OS X 10.3.9
I do not follow nntp currently. To subscribe to tcltk@perl.org write to tcltk-subscribe@perl.org I afraid my help will be not enough due to lack of MAC info from me. Anyway, what your Tcl::TK ver?
Direct Responses: 2301 | Write a response
Posted on Mon May 15 08:12:35 2006 by pstranak in response to 2296
Re: running on Mac OS X 10.3.9
My Tcl::Tk version is 0.88 (latest from CPAN). Anyway, I have avoided the problem by upgrading to newer version od OS (10.4). Now Tcl::Tk works fine. I still have problems with understanding how some things work, but I will ask my questions on tcltk@perl.org. Pavel
Write a response