Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Unable to configure background in perl-Tkx.

Reply
Thread Tools

Unable to configure background in perl-Tkx.

 
 
Prathap
Guest
Posts: n/a
 
      06-30-2009
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
 
Reply With Quote
 
 
 
 
smallpond
Guest
Posts: n/a
 
      06-30-2009
On Jun 30, 12:59*pm, Prathap <(E-Mail Removed)> wrote:
> 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?
 
Reply With Quote
 
 
 
 
Prathap
Guest
Posts: n/a
 
      06-30-2009
On Jun 30, 11:49*pm, smallpond <(E-Mail Removed)> wrote:
> On Jun 30, 12:59*pm, Prathap <(E-Mail Removed)> wrote:
>
>
>
>
>
> > 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?- Hide quoted text -
>
> - Show quoted text -


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

Regards,
Prathap
 
Reply With Quote
 
smallpond
Guest
Posts: n/a
 
      06-30-2009
On Jun 30, 4:04*pm, Prathap <(E-Mail Removed)> wrote:
> On Jun 30, 11:49*pm, smallpond <(E-Mail Removed)> wrote:
>
>
>
>
>
> > On Jun 30, 12:59*pm, Prathap <(E-Mail Removed)> wrote:

>
> > > 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?

>
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to configure sub interfacers 3750 feck199 Cisco 1 09-05-2006 09:58 AM
Unable to configure VLAN on Cisco 2516 aenagy@gmail.com Cisco 3 07-03-2006 07:59 PM
Buffalo WMR-G54 - unable to connect in order to configure Clive Wireless Networking 1 09-11-2005 01:15 AM
Windows protection error at startup - Unable to configure CONFIGMC User Name Computer Support 5 07-26-2005 07:58 PM
different between configure libraries and configure JDKs HS1 Java 0 11-18-2004 03:40 AM



Advertisments