[pygtk] Fullscreen on second monitor
Thomas Güttler
guettli at thomas-guettler.de
Sun Dec 25 06:26:27 WST 2011
Hi,
how can I show the fullscreen window on the secondary monitor?
At best, the fullscreen mode should start on this screen where,
the current (not fullscreen) application is running.
At the moment the fullscreen is on my laptop, and not on the
secondary monitor.
With pygtk I can't seem to find a secondary screen:
display_manager = gtk.gdk.display_manager_get()
for display in display_manager.list_displays():
print display
for num in range(display.get_n_screens()):
screen=display.get_screen(num)
print 'screen', screen
output:
<gtk.gdk.DisplayX11 object at 0xa74ddec (GdkDisplayX11 at 0xa34b008)>
screen <gtk.gdk.ScreenX11 object at 0xa74dd24 (GdkScreenX11 at 0xa34e0d8)>
I use Ubuntu 11.10.
--
Thomas Guettler http://www.thomas-guettler.de/
More information about the pygtk
mailing list