Can't center dialog window above main window when using Glade (Quickly)

Posted by Niklas on Ask Ubuntu See other posts from Ask Ubuntu or by Niklas
Published on 2012-09-11T14:45:07Z Indexed on 2012/09/11 15:49 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
|

I have a dialog opening when I press a button in my application and I want it to center above the application's main window, but I can't find a way to do this. I'm using Quickly (Python) and Glade.

In Glade I've tried the following settings:

  • Window Type = Popup
  • Modal = Yes
  • Window Position = Center on Parent

But I simply can't get the behaviour I'm after. When using the "Window Type" option "Top level" the dialog opens in the center of the screen. When I use "Window Type" = "Popup" it opens in the very top left corner, with the window controls unaccessible.

I know this must be a very basic setting but I've just started developing with GTK and Python so I obviously managed to miss this.

Thanks for any advice! :)

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about python