I have since discovered that I had left out the signal .clicked 
I wish I could understand these docs better. But even now after I realize 
what the problem was, reading these docs again didn't bring me any closer 
to the answer.  Where is the line in the docs that should have alerted me 
to what I needed to do ?


On Monday, October 23, 2017 at 6:55:55 AM UTC-7, Marcus Ottosson wrote:
>
> The way you can spot it, is by (1) looking at the error message..
>
> # TypeError: PySide2.QtCore.QObject.connect(): not enough arguments #
>
> ..followed by (2) going to the docs for that object and method..
>
>    - http://doc.qt.io/qt-5/qobject.html#connect 
>
> And you’ll find that indeed, it takes more than a single argument, and the 
> first argument is of type QObject.
> ​
>
> On 23 October 2017 at 14:15, Neil Roche <[email protected] <javascript:>> 
> wrote:
>
>> You haven't added the signal clicked.
>>
>> It should be:   
>>
>> self.Pbtn_randomlyDistribute.clicked.connect(self.randomlyPlaceA)
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/711d1f24-94ce-472a-adb7-1e1944db51e9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/711d1f24-94ce-472a-adb7-1e1944db51e9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/77f90311-fe92-4ef8-bc25-b80507ab33a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to