[pygtk] Help to move and resize a window without decoration?

Francesco Fumanti francesco.fumanti at gmx.net
Wed Dec 17 04:28:58 WST 2008


Hello,


I have a window with the keep above flag (to make it float over the 
other windows) and without decoration; the window only contains a 
gtk.Image (read from a svg file) of the size of the window.

However, I want the user to be able to move and resize this window 
without decoration. Could anybody please tell me how to implement (on 
Ubuntu linux) the moving and resizing of the window, as there is no 
decoration to provide this fonctionality? (Please, take into account in 
your answers that I am a newbie at python and gtk developing).


For those that want to have more background:

I am trying to add the following feature to the onscreen keyboard named 
onboard, that is part of Ubuntu and that is written in python:

When the user minimises the keyboard window, I want something like a 
floating icon to appear on the screen. If the user clicks on the icon, 
the onscreen keyboard should reappear and the floating icon disappear. 
As floating icon, I thought to use a window without decoration; thus my 
question above...


Thanks in advance for any help.


Francesco


More information about the pygtk mailing list