Unable to configure background in perl-Tkx.

P

Prathap

Hi All:

I'm trying to configure background and foreground color for a frame
and I get error
"unknown option -background"


$l1Sub1 = $mw->new_ttk__frame(-padding => "2 2 2 2");
$l1Sub1->configure(-height => 600, -width => 200);
$l1Sub1->configure(-background => "#F9B7FF");

This code fails to work.
I'm using active perl 5.10.

Please help me if I'm missing anything.

Regards,
Prathap
 
S

smallpond

Hi All:

I'm trying to configure background and foreground color for a frame
and I get error
"unknown option -background"

$l1Sub1 = $mw->new_ttk__frame(-padding => "2 2 2 2");
$l1Sub1->configure(-height => 600, -width => 200);
$l1Sub1->configure(-background => "#F9B7FF");

This code fails to work.
I'm using active perl 5.10.

  Please help me if I'm missing anything.

Regards,
Prathap

Why do you believe that widget has a -background option?
 
P

Prathap

Why do you believe that widget has a -background option?- Hide quoted text -

- Show quoted text -

I could do similar thinks in Tcl/Tk. The frame widget has background
option.

Regards,
Prathap
 
S

smallpond

I could do similar thinks in Tcl/Tk. The frame widget has background
option.

Regards,
Prathap

But you aren't using a frame. You are using a ttk::frame.
The whole point of ttk is to separate the style from the
individual widgets.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top