On 24.12.2011 23:26, Thomas Güttler wrote:
Hi,

how can I show the fullscreen window on the secondary monitor?


It works for me now. I have normal window (not fullscreen) and start
a fullscreen window if a callback. The fullscreen window starts where
the normal window was now, even if you have a multi head setup.

The solution was:
window.set_transient_for(parent.window)
window.set_position(gtk.WIN_POS_CENTER_ON_PARENT)


class FullScreen:
    def __init__(self, parent):
        self.window=gtk.Window()
        self.window.set_transient_for(parent.window)
        self.window.set_decorated(False)
        self.window.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
        self.box=gtk.VBox(False, 0)
        self.window.add(self.box)
        self.window.fullscreen()
        ....


--
Thomas Guettler http://www.thomas-guettler.de/
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to