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/
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to