Re: [PyQt] setting color of window titlebar or window background

2011-10-17 Thread Erik Janssens
we use a stylesheet for this purpose, they are
rather easy to implement, and you can have one
for test, pre-production, production ...

http://doc.qt.nokia.com/latest/stylesheet.html


On Mon, 2011-10-17 at 22:00 +0200, Hans-Peter Jansen wrote:
> On Sunday 16 October 2011, 21:14:44 Brad Buran wrote:
> > When users of my program run it in test mode, it is not actively
> > saving data.  Once in a while, a user forgets that they are in test
> > mode and attempts to run an experiment only to realize that the data
> > wasn't being saved after they're done.  Is it possible to change the
> > color of the title bar or background to indicate that it is in test
> > mode?  Something like a bright red title bar would be ideal, but I'm
> > ok with anything that I can set to visually indicate the difference
> > between test and data collection mode that's obvious enough to a
> > user.
> 
> Yes, of course, but the price is high: draw your own and mimic the 
> window manager behavior (move, hide, {min,max}imize, quit..).
> 
> How about coloring the background of your app, add some text to the 
> title bar or color your icon red?
> 
> Pete
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] setting color of window titlebar or window background

2011-10-17 Thread Hans-Peter Jansen
On Sunday 16 October 2011, 21:14:44 Brad Buran wrote:
> When users of my program run it in test mode, it is not actively
> saving data.  Once in a while, a user forgets that they are in test
> mode and attempts to run an experiment only to realize that the data
> wasn't being saved after they're done.  Is it possible to change the
> color of the title bar or background to indicate that it is in test
> mode?  Something like a bright red title bar would be ideal, but I'm
> ok with anything that I can set to visually indicate the difference
> between test and data collection mode that's obvious enough to a
> user.

Yes, of course, but the price is high: draw your own and mimic the 
window manager behavior (move, hide, {min,max}imize, quit..).

How about coloring the background of your app, add some text to the 
title bar or color your icon red?

Pete
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] setting color of window titlebar or window background

2011-10-16 Thread Brad Buran
When users of my program run it in test mode, it is not actively
saving data.  Once in a while, a user forgets that they are in test
mode and attempts to run an experiment only to realize that the data
wasn't being saved after they're done.  Is it possible to change the
color of the title bar or background to indicate that it is in test
mode?  Something like a bright red title bar would be ideal, but I'm
ok with anything that I can set to visually indicate the difference
between test and data collection mode that's obvious enough to a user.

Thanks,
Brad
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt