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

Lucas Tanure ltanure at gmail.com
Tue Oct 29 14:24:05 CET 2013


Hi,

Thanks, On previus version of Pyside I didn't need this @QtCore.Slot(), but
know only works with this.
There is any place where I can find more information ?
It will be like @QtCore.Slot(int) ??

Thanks

--
Lucas A. Tanure Alves
+55 (19) 988176559


On Tue, Oct 29, 2013 at 12:22 AM, Matthew Woehlke <
matthew.woehlke at kitware.com> wrote:

> 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
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20131029/83c79e52/attachment.html>


More information about the PySide mailing list