On Tue, Apr 03, 2007 at 08:48:05AM +1200, Karl. wrote:
> Hi,
>
> Sorry if this is off-topic, but I don't think there is a better place to
> ask this than here.
>
> I'm starting out with writing Tkinter applications (ie. the Python
> binding to Tk). Trying to make a dialog box that automatically 'floats'
> rather than being 'tiled'.
>
> I can do this with a dwm rule, but I'd like to do have it happen
> automatically if possible. Does anyone here know what I have to pass to
> Tkinter to get this happen?
You should set the WM_TRANSIENT_FOR hint to the dialog window.
That's the proper ICCCM-compliant way.
> I thought the 'transient' method was the relevant thing, but it doesn't
> seem to be.
It is, the WM_TRANSIENT_FOR property should contain the main
window id.
Regards,
-- Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361Received on Tue Apr 03 2007 - 10:33:13 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:40:15 UTC