Then you have Tk 8.4 and not 8.5. In that case, try adding:
Tkx::package_require('tile');
On 12/17/08 10:03 PM, Mike Ignatoski wrote:
Jeff,
Thanks, and that looks simple enough, but it doesn't work for me.
my code:
my $cbx = $frmIconVersion->new_ttk__combobox (); $cbx->g_pack();
throws this runtime error:
invalid command name "ttk::combobox" at C:/Perl/lib/Tcl.pm line 562,
<DECK_FILE> line 7. ...
Does it rely on any environment variables?
Mike
-----Original Message-----
From: Jeff Hobbs [mailto:je...@activestate.com]
Sent: Thursday, December 18, 2008 12:51 AM
To: Mike Ignatoski
Cc: tcltk@perl.org
Subject: Re: ttk widgets in Tkx
On 12/17/08 9:20 PM, Mike Ignatoski wrote:
I'm using Tkx with Perl 5.10& Tcl 8.5.5 on Win32& Mac.
I'm trying to figure out how to use the various ttk
"themed" widgets.
With Tk 8.5, there is no need of other packages to require -
the themed
widgets are part of the core itself.
Do something like:
my $cbx = $mw->new_ttk__combobox();
$cbx->g_grid();
and that is all.
I also saw that the Tcl sample code has a "package require
Ttk", so I
didn't think it was 'bundled in'.
Hmmm, that sample code needs to be fixed - that's not correct.
Jeff