Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > tk resource file for geometry?

Reply
Thread Tools

tk resource file for geometry?

 
 
Gabriel B.
Guest
Posts: n/a
 
      02-12-2005
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,
 
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
Resource expression to access resource located in library Heinrich Moser ASP .Net 1 03-27-2008 04:25 PM
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
URGENT: window.open does not render server-side code when aspx file pulled from a resource file Bob Jones ASP .Net 13 02-21-2007 03:18 PM
Resource manager problem: naming for embedded resource. Dirc Khan-Evans ASP .Net 1 10-17-2005 12:52 PM
The system cannot locate the resource specified. Error processing resource avishosh XML 2 08-08-2004 06:28 AM



Advertisments