On Wed, 23 Sep 2009 15:01:24 +0200, Michele Petrazzo - Unipex
<[email protected]> wrote:
> Hi all,
> I'm trying to use qt/pyqt for the first time and I found the first
> problems...
> I see that when I connect a signal to a widget, if I create a wrong
> signal, qt don't say me that I'm wrong let me crazing to find why qt
> don't call my callback... So, there is a method for say to qt to warning
> me?
> 
> Example:
> 
> right:
> self.connect(self.my_rb, QtCore.SIGNAL("toggled(bool)"), self._evt_my_rb)
> wrong:
> self.connect(self.my_rb, QtCore.SIGNAL("toggled()"), self._evt_my_rb)

Assuming you have a recent version then use the new connection syntax...

    self.my_rb.toggled.connect(self._evt_my_rb)

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to