tk resource file for geometry?

Discussion in 'Python' started by Gabriel B., Feb 12, 2005.

  1. Gabriel B.

    Gabriel B. Guest

    i'm using almost every widget property from my pyTk programs in the
    form of resources, like:
    self.tk.option_add ( "*InputClass*background", "White" )

    In the widget creation i have only the Class and the Command
    attribute, but i'm having to add some tk options to the geometry
    method, in the case, pack. Is there a way to overcome this?

    For example, every single Frame i pack i use
    self.pack(fill='both', expand=1)
    I'd love to have something like:
    self.tk.option_add ( "*Frame*fill", 'both' )
    self.tk.option_add ( "*Frame*expand", 'yes' )

    Is there anything like it?

    Thanks,
     
    Gabriel B., Feb 12, 2005
    #1
    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. David E.

    geometry/java problem

    David E., Aug 21, 2003, in forum: Java
    Replies:
    3
    Views:
    431
    Sideshow Alex
    Sep 7, 2003
  2. Chris Smith

    Computational geometry libraries

    Chris Smith, Jul 27, 2004, in forum: Java
    Replies:
    3
    Views:
    618
    Chris Smith
    Jul 27, 2004
  3. Jon
    Replies:
    5
    Views:
    754
    Jonathan Mcdougall
    Oct 3, 2003
  4. Maxim Shemanarev

    Anti-Grain Geometry - 2D Rendering Library

    Maxim Shemanarev, Apr 29, 2004, in forum: C++
    Replies:
    7
    Views:
    2,972
    Claudio Puviani
    May 5, 2004
  5. Zora Honey

    tkinter window geometry

    Zora Honey, Nov 20, 2003, in forum: Python
    Replies:
    3
    Views:
    845
    Eric Brunel
    Nov 24, 2003
Loading...

Share This Page