> Im not sure what the path to the top level widget is (Ousterhout's
> book or the wm man pages will explain that), but the internal widgets
> normally have a nonsensical name made up of digits chosen at random
> (actually it's the object's address :-). To override this, you can
> add 'name': 'userDefinedName' to the config dictionary at widget
> creation time.
I took his suggestion, and Tk (3.6) definitely accesses the resource,
but doesn't do what I want. Basically, I would like to position
a popup window using an X resource. I used the following in my resource
file:
*jtcontrol.geometry: -20+70
I know that Tk is seeing it, because it gives me the following error message:
TclError: bad geometry "-20+70": expected widthxheight
I tried adding a WxH field, even though I didn't want one. Result was that
there was no more error message, but the geometry was completely ignored
by the program.
Is there a way to do this? I.e. to pre-position a popup on the screen?
Thanks.
Bruce
-- ______________________________________________________________________Bruce Bon Member Technical Staff Mail Stop 198-219 Automation and Control Section Jet Propulsion Laboratory Phone: (818) 354-4969 4800 Oak Grove Drive FAX: (818) 393-5007 Pasadena, CA 91109-8099
E-Mail: bon@telerobotics.jpl.nasa.gov OR bruce.bon@jpl.nasa.gov URL: http://robotics.jpl.nasa.gov/people/bon/homepage.html