[PyQt] Question about labels with status message

Jason Tiller jason at sonos.org
Tue Dec 21 22:43:49 GMT 2010

Hi, Abhishek, :)

On Fri, 17 Dec 2010, Abhishek wrote:

> Hi all,I have a general coding question as opposed to specific to
> pyqt. In a gui, if I want to have a status message box (a QLabel)
> which should display messages from all components of the gui, what
> is the best way to go about it? Should all the components need to
> have a pointer to the QLabel? Or should I make a static class which
> any component can access and use this class to update the QLabel?
> Any other ideas?

I would prefer having each component emit() a signal with the status
text as the argument and then connect() those signals to the QLabel's
setText() slot.


More information about the PyQt mailing list