[pygtk] Place a widget in a window at desired position

Xi Chen s060982 at student.dtu.dk
Mon Apr 16 09:28:06 WST 2007


Hi Felix,

Thanks for information. You're absolutely right. It's not an advisable way
to meet my goal although it works for me. But it indeed results in some
confusing problems, I therefore had to refer to traditional packing
containers and after a tough struggle with documentation and tutorials I
managed to do it.

Thanks again!

-----Original Message-----
From: Felix Rabe (public) [mailto:public at felixrabe.textdriven.com] 
Sent: 2007年4月15日 17:30
To: s060982 at student.dtu.dk
Cc: pygtk at daa.com.au
Subject: Re: [pygtk] Place a widget in a window at desired position

Xi Chen wrote:
> I’m new to pygtk and want to know, is there any way to place a widget, 
> like a label or an image, at an exact position in a window? For example 
> I want to place a label at (500,500) to left upper corner, no matter the 
> window is in full screen or other state.

Hi,

It is absolutely not recommended - read:

     http://www.pygtk.org/docs/pygtk/class-gtkfixed.html

Also see

     http://www.pygtk.org/docs/pygtk/class-gtklayout.html

for another way.

bye,
Felix



More information about the pygtk mailing list