[PySide] [Pyside][ Bug ]Signal calls with no arguments

Matthew Woehlke matthew.woehlke at kitware.com
Tue Oct 29 00:22:36 CET 2013


On 2013-10-28 18:19, Lucas Tanure wrote:
> if I do:
>
>      @QtCore.Slot()
>      def on_motor_group1_power_slider_valueChanged(self, value):
>          print value
>
> I got :
>
> TypeError: on_motor_group1_power_slider_valueChanged() takes exactly 2
> arguments (1 given)

Do I miss something? It looks like you have declared a method taking one 
argument as a slot taking no arguments. I'm not surprised this doesn't work.

I think you meant to either give an argument in your "@QtCore.Slot()", 
or else to not give the slot function an argument.

-- 
Matthew




More information about the PySide mailing list