Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Tk / June 2009



Tip: Looking for answers? Try searching our database.

Unable to configure background color.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prathap - 30 Jun 2009 17:58 GMT
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
Jeff  Hobbs - 30 Jun 2009 22:02 GMT
> I'm trying to configure background and foreground color for a frame
> and I get error
[quoted text clipped - 6 lines]
> This code fails to work.
> I'm using active perl 5.10.

The -foreground makes no sense in a frame, and if you want a frame
with a
-background then you want to use new_frame, the classic Tk frame
rather than
the themed version (new_ttk__frame).  The themed version is designed
to be
controlled by theme styles, defaulting to the native drawing engine of
the
platform.  You can customize them on a per-instance basis (or per-
group with
-style), but in this case if you want a solid background then just use
new_frame instead.

Jeff
Prathap - 30 Jun 2009 22:18 GMT
> > I'm trying to configure background and foreground color for a frame
> > and I get error
[quoted text clipped - 21 lines]
>
> Jeff

Thanks a Lot and it helped.

Regards,
Prathap
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.