[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Question about labels with status message
From:       Jason Tiller <jason () sonos ! org>
Date:       2010-12-21 22:43:49
Message-ID: alpine.DEB.2.00.1012211441200.25631 () jasont-laptop
[Download RAW message or body]

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.

---Jason
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic