For this, you are completely dependent on your window manager, and the key problem here is:
without maximization
, , , , , .
, , , .
, :
import gtk
def _on_size_req(win, req):
x, y, w, h = win.get_allocation()
print x, y, w, h
win.disconnect(win.connection_id)
win.unmaximize()
win.window.move_resize(x, y, w, h)
w = gtk.Window()
w.show_all()
w.connection_id = w.connect('size-request', _on_size_req)
w.maximize()
gtk.main()