[pygtk] how to cut off the maximum button in the window?
Tim Evans
t.evans at aranz.com
Tue Oct 13 10:29:58 WST 2009
holmes86 wrote:
> thanks for your reply.
> but I used self.window.window.set_decorations(decor),report this error:
> AttributeError: 'NoneType' object has no attribute 'set_decorations'
> I used glade,and my window is a Dialog.how to correct use the
> set_decorations function?thanks
"self.window.window" will be None until the window is realized. Did you
already try setting the decorations in the realize handler as I suggested?
Many of the other suggestions remove the ability for the user to resize
your window at all. This is sometimes a bad idea, because you can't
know in advance what size monitor your users will have, or what font
size they use etc. Letting the window size itself naturally, and
letting the user resize it from that point, is often better than using a
fixed size. Remembering what size the window was, and restoring that
size next time your software runs is also a good idea.
--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
More information about the pygtk
mailing list