Pavel Stranak wrote:
> When I try my old Perl/Tk code with Labelframe I get this error:
> -------------
> Tcl error 'bad option "Labelframe": must be cget or configure 
> at 
> /net/su/h/local2-rh8/lib/perl5/site_perl/5.8.5/i386-linux-thre
> ad-multi/Tcl.pm line 548. ' while invoking scalar result call:
>         ". Labelframe -text SemLex -padx 2 -pady 2"

OK, this isn't translating the order of arguments right.  I'll let Vadim look
at this as he wrote that code (iirc).

> When I try Vadim's example, I get (on Fedora):
> Tcl error 'invalid command name "iwidgets::labeledframe"

Ah yes ... this is an issue with auto-loading in Tcl that doesn't *quite* mesh
with the Tcl::Tk stuff.  Some Tcl packages will respond to 'package require
foo' just fine, but won't actually *load* code until the first call (using
Tcl's built-in lazy loading mechanisms).

> In windows with ActiveTcl it works, as long as there is no 
> button in the Labelframe. When I uncomment the following line 
> it hangs. Why? #$ne->Button(-text=>'qwerty')->pack;
> On my Mac (with default Tcl install of MacOS X 10.4) it hangs 
> without any error too.

I see Vadim just addressed this.

> I would really like to find some documentation or more 
> examples. I can't figure out this Labelframe thing, balloon 
> help (just saying 'use Tcl::Tk::Widget::Balloon;' does not 
> help) and ROText (or even better equivalent of Tk::Text::Viewer).

OK, these examples are easy enough.  I have a tight schedule today, so I won't
be able to provide some samples until later.

> Thanks for your help. Tcl::Tk looks in some aspects better 
> than Perl/Tk, but there is a problem with documentation for 
> those of us, who don't understand Tcl itself and need to 
> reuse old Perl/Tk code.

Yes, we realize this ... :/

Jeff

Reply via email to