Trouble maximizing windows on MS Windows
- From: Jared Henley <jared henley pelena com au>
- To: gtk-app-devel-list gnome org
- Subject: Trouble maximizing windows on MS Windows
- Date: Mon, 27 Aug 2012 14:27:22 +1000
I have a Gtk application that needs windows to be maximised at their
creation. This is specifically because i) there's a lot of information
in tables that needs maximisation in order to deal with sensibly, and
ii) quite a lot of these windows are being opened (and closed) during
normal use. (It's a forms-based database app). I'm using Gtk3 via Python.
So I use the Gtk.Window.maximize() method to maximise a window, and it
works very well on native X11. But if I run an X server on a Windows
machine (XP and 7 tested), the window is not maximised.
I've got an installation of Gtk3 running under windows 7, so I tried
from there too.
win = Gtk.Window()
win.show_all() # A window appears
win.maximize() # Window actually maximizes, but isn't repainted
win.connect("destroy", Gtk.main_quit)
Gtk.main() # window gets "restored"
From that little test it seems that the maximize method is actually
doing _something_ that Windows can recognise, but I can't work out how
to make it stick.
Does anyone have a clue about how to solve this? I've trawled the 'net
and this list and come up with nothing.
Jared.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]