[PyKDE] signals

Joshua J. Kugler joshua at eeinternet.com
Fri Oct 6 20:15:20 BST 2006


On Friday 06 October 2006 11:00, Matt Chambers wrote:
> Any guesses as to why this line would not conncet the signal?  Using a
> treeview.
>
> self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex &
> index)"), self.cbCollapsed);

1, you are including parameter names in the signal
2. you are connecting a parameterized signal to a non-parameterized signal
3. You have an & in a Python program...not correct syntax, IIRC
4. The const keyword is not a Python keyword, but that wouldn't raise a flag 
here since SIGNAL connects on function names, not parameter modifiers.

j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111




More information about the PyQt mailing list