[pygtk] fullscreen trouble on windows
khiraly
khiraly123 at gmx.net
Thu Apr 10 05:42:50 WST 2008
Ok, I have tested today on windows xp.
I even have installed gtk 2.12 (I had 2.10).
The problem are the same,the window are not truely fullscreen.
On my ubuntu 7.10 the problem is not present.
I have updated my simple code, to demonstrate the difference.
So I have added a "fullscreen workaround", when it is pushed the window
will become truely fullscreen. The problem however, that
when in fullscreen mode, showing or hiding some widgets the
problem reappears. You can test it by invoking "fullscreen workaround",
and after press the "options >>>" button couple of time.
Is there somebody who see this bug(?) on a linux box? (Vicent and I both
confirmed, that on ubuntu 7.10 the bug does not appears).
Anybody on windows, can you confirm this problem with the new updated
simple code?
So Im interested now, if it is a bug or some limitation of windows. And
if so, how can i workaround this?
Any idea?
The updated simple code:
import gtk
global fullscreen_v
global options_v
fullscreen_v = 0
options_v = 0
window = gtk.Window ()
def button_clicked (button):
print 'Hello World!'
def fullscreen(button):
global fullscreen_v
if fullscreen_v:
window.unfullscreen()
fullscreen_v = 0
else:
options()
window.fullscreen()
fullscreen_v = 1
def fullscreen_workaround(button):
global fullscreen_v
if fullscreen_v:
window.unfullscreen()
fullscreen_v = 0
else:
options()
while gtk.events_pending(): gtk.main_iteration()
window.fullscreen()
fullscreen_v = 1
def options(button=None):
global options_v
if options_v:
l3.hide()
l2.set_label("Options >>>")
options_v = 0
else:
l3.show()
l2.set_label("Options <<<")
options_v = 1
window.set_title ('Hello World!')
window.connect ('destroy', lambda w: gtk.main_quit ())
v = gtk.VBox()
h = gtk.HBox()
l = gtk.Button("Fullscreen")
la = gtk.Button("Fullscreen with workaround")
l2 = gtk.Button("Options >>>")
l3 = gtk.Label("These are the options")
l4 = gtk.Statusbar()
l.connect('clicked', fullscreen)
la.connect('clicked', fullscreen_workaround)
l2.connect('clicked', options)
h.pack_start(l)
h.pack_start(la)
v.pack_start(h)
v.pack_start(l2)
v.pack_start(l3)
v.pack_start(l4, expand=False)
v.show_all()
l3.hide()
window.add(v)
window.present()
gtk.main ()
Best regards,
Khiraly
On sze, 2008-04-09 at 08:13 +0200, Paul Malherbe wrote:
> I have the same problem.
>
> Under linux it works perfectly but under Wimdows XP and Windows 98 SE
> full screen leaves a gap at the top between the top of the screen and
> window.
>
> Regards, Paul
>
> Cubells wrote:
> > En/na khiraly ha escrit:
> >
> > > I have written a simple
> > > demonstration code[1], but didnt tried out on windows xp (Im at home
> > > right now). I will do tomorrow, and will confirm if the demonstration
> > > code is right or not.
> > >
> > > [1]: available at:
> > > http://pastebin.ca/977654
> > >
> > >
> > It works for me.
> >
> > Ubuntu 7.10
> > Resolution: 1280x800
> >
> > Best regards!
> > _______________________________________________
> > pygtk mailing list pygtk at daa.com.au
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> >
> >
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
More information about the pygtk
mailing list