Unable to configure background in perl-Tkx.

Discussion in 'Perl Misc' started by Prathap, Jun 30, 2009.

  1. Prathap

    Prathap Guest

    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
    Prathap, Jun 30, 2009
    #1
    1. Advertising

  2. Prathap

    smallpond Guest

    On Jun 30, 12:59 pm, Prathap <> 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?
    smallpond, Jun 30, 2009
    #2
    1. Advertising

  3. Prathap

    Prathap Guest

    On Jun 30, 11:49 pm, smallpond <> wrote:
    > On Jun 30, 12:59 pm, Prathap <> 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
    Prathap, Jun 30, 2009
    #3
  4. Prathap

    smallpond Guest

    On Jun 30, 4:04 pm, Prathap <> wrote:
    > On Jun 30, 11:49 pm, smallpond <> wrote:
    >
    >
    >
    >
    >
    > > On Jun 30, 12:59 pm, Prathap <> 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.
    smallpond, Jun 30, 2009
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. HS1
    Replies:
    0
    Views:
    442
  2. alee
    Replies:
    5
    Views:
    449
    Mark Rae [MVP]
    Aug 16, 2007
  3. japss
    Replies:
    0
    Views:
    576
    japss
    Jul 12, 2008
  4. Prathap

    Tree view in tkx module.

    Prathap, Jul 2, 2009, in forum: Perl Misc
    Replies:
    1
    Views:
    143
    J. Gleixner
    Jul 2, 2009
  5. kens

    Tkx checkbutton font

    kens, Aug 10, 2009, in forum: Perl Misc
    Replies:
    1
    Views:
    150
    smallpond
    Aug 11, 2009
Loading...

Share This Page