Unkuiri
Unkuiri

Reputation: 41

Pygtk - How to center a window on a parent window border?

How can I make a child widget (in this case other window, a popup one) popup attached to the border of the parent window? I know I can center it in the parent with: gtk.Window.set_position(gtk.WIN_POS_CENTER_ON_PARENT), but how can I make it popup in the border?

Upvotes: 0

Views: 922

Answers (1)

Unkuiri
Unkuiri

Reputation: 41

Solved...:P

I managed to solve it by using:

(x, y) = parent.get_position()

y1 = y+50

child.move(x, y1)

Upvotes: 1

Related Questions