El Mon, Mar 12, 2001 at 09:59:33AM -0300, Andre Luis Lopes dijo:
> Hi all
> 
>    Someone knows how to get the screen width and height ? I'm needing it to 
> be able to set a top level window size.
> 
>   I'm using :
> 
>   window = GtkWindow(WINDOW_TOPLEVEL)
>   window.set_usize(800, 600)
> 
>   But, it would be better if I could use :
> 
>   window = GtkWindow(WINDOW_TOPLEVEL)
>   window.set_usize(screen_widht, screen_height)
> 
>    Some volunteer to help me on this ?


I don`t know if this is the better solution but is the only one that i
know :)

#!/usr/bin/env python


from GDK import *
from gnome.ui import *
import gtk

gdkRootWindow = gtk._root_window()
print gdkRootWindow.height
print gdkRootWindow.width


-- 
Hasta otra!

        Eduardo Ferro Aldama     [EMAIL PROTECTED] 
        (Linux User 58390-44335)

La web del GLUB http://glub.ehu.es/
Grupo Linux Usuarios de Bizkaia

(E)macs (M)akes (A)ll (C)omputing (S)imple

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to