How do you create a main window that fills the entire desktop The work bar is being covered (or being covered Without) and without maximizing ? I can see the entire screen size and set the main window with it:
window = gtk.Window () screen = window.get_screen () window.resize (screen.get_width (), Screen.gate_height ())
But the window is covered by the work bar below.
You are completely at the mercy of your window manager, and here's the main issue: / P>
without maximizing
So we have been left with many hacks, because basically let's change max and size There are different things, so that you can remember where it was from when it was very low.
So before I show you this horrible hack, I urge you to consider using the appropriate maximum and will be happy with it.
So here goes:
import gtk # I am ashamed of this # size change df_one_ shape_reak (win, request) address Set signal handle to once: X, y, w, h = win.get_allocation () print x, y, w, h # just win.unctionize your working win.disconnect (win.connection_id) win.unmaximize () Win.window.move_resize (x, y, w, h) # Create a window, connect the signal, then maximize it = gtk.Window () w.show_all () w.connection_id = w.connect ('size-request' , _on_size_req) # Increasing will be maximized Unmaximize the Gnial Handler only once, and then W.maximize () in the size set for the maximum adjustment. This monstrosity gtk.main ()
Comments
Post a Comment