[Csnd] PythonQt error with connect slots
Date | 2017-11-10 14:00 |
From | Richard |
Subject | [Csnd] PythonQt error with connect slots |
I'm trying the example EXAMPLE 12C05_string_sound.csd Every connect function returns an error. E.g this line: playButton.connect(SIGNAL("clicked()"),play)
gives:
ValueError: Could not find matching overload for given arguments:(QByteArray (2clicked(), at: 0x7fa606359260), <function play at 0x11630ab18>) The following slots are available:connect(QString signal, PyObject callable) ->etc..
Richard |
Date | 2017-11-10 15:19 |
From | Tarmo Johannes |
Subject | Re: [Csnd] PythonQt error with connect slots |
Hi, I am glad you are checking out PythonQt possibilities - it opens vast possibilities. And thanks for the feedback! The tutorial was written in time of Qt 4, seems that things have changed it Qt5 and some things don't work. Please try following syntax for the connections: |
Date | 2017-11-10 15:39 |
From | Richard |
Subject | Re: [Csnd] PythonQt error with connect slots |
Thanks, that works. I noted that the normal (empty) widget also comes up. Is there a way to suppress this? Richard On 10/11/17 16:19, Tarmo Johannes wrote: > Hi, > > I am glad you are checking out PythonQt possibilities - it opens vast > possibilities. > > And thanks for the feedback! > > The tutorial was written in time of Qt 4, seems that things have changed it > Qt5 and some things don't work. > > Please try following syntax for the connections: > > |
Date | 2017-11-10 15:59 |
From | Tarmo Johannes |
Subject | Re: [Csnd] PythonQt error with connect slots |
Hi, I am off to airport to play in Stockholm - Csounders in Stockholm, come and listen! - back to this on Monday. Greetings, Tarmo 10.11.2017 17:40 kirjutas kuupäeval "Richard" <zappfinger@gmail.com>: Thanks, that works. |
Date | 2017-11-10 20:16 |
From | Richard |
Subject | Re: [Csnd] PythonQt error with connect slots |
good luck and skål! Richard On 10/11/17 16:59, Tarmo Johannes
wrote:
|