murrayn has asked for the wisdom of the Perl Monks concerning the following question:
I get the following error which is fairly self-explanatory except that I understood, from what doc (mainly Tk, NOT Tkx) that it should work.use Tkx; my $mw = Tkx::widget->new("."); my $calc = $mw->new_ttk__button(-text=>"Calculate", -command=>sub {cal +culate();}); $calc->g_grid(-column=>1,-row=>3,-columnspan=>2,-sticky=>"ew"); $calc->g_bind("<Enter>", sub {$calc->configure(-background=>'red');}); Tkx::MainLoop();
Am I attempting the impossible or do I need some other module to discover these attributes?unknown option "-background" at /TestCode/configtest.pl line 5. unknown option "-background" while executing ".b configure -background red" invoked from within "::perl::CODE(0x4af0d4)" (command bound to event)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Limitations with Tkx configure options?
by Anonymous Monk on Sep 10, 2012 at 09:10 UTC | |
|
Re: Limitations with Tkx configure options?
by Anonymous Monk on Sep 10, 2012 at 09:00 UTC | |
|
Re: Limitations with Tkx configure options?
by zentara (Cardinal) on Sep 10, 2012 at 10:24 UTC | |
by Anonymous Monk on Sep 10, 2012 at 18:48 UTC | |
by murrayn (Sexton) on Sep 11, 2012 at 01:52 UTC |