Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77326

Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable"

References <CAAp0bGv4mvHteLBYkemLHS_vDkgeuS0r_fO8G2PpbKOjk2aC8A@mail.gmail.com> <5402208C.5080201@mrabarnett.plus.com>
From Juan Christian <juan0christian@gmail.com>
Date 2014-08-30 16:17 -0300
Subject Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable"
Newsgroups comp.lang.python
Message-ID <mailman.13648.1409426294.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Yes, indeed, my code was a mess!

I did a clear code here (http://pastebin.com/XsVLSVky) that's fully
working, thanks!


2014-08-30 16:05 GMT-03:00 MRAB <python@mrabarnett.plus.com>:

> On 2014-08-30 14:35, Juan Christian wrote:
>
>> Hello everyone, I have a question regarding PySide 1.2.2 and Python 3.4.1
>>
>> I have this code <http://pastebin.com/5NXd4Jkk> that I made following a
>> Python tutorial <https://www.youtube.com/watch?v=8D_aEYiBU2c>, mine is a
>>
>> bit different because the tutorial is a bit old, and I'm trying to use
>> Python newest features .
>>
>> As I read in the doc, PySide Signal and Slots now work differently, and
>> I'm trying to use this new way (lines 32 - 34).
>>
>> But, as you guys can see in the pastebin link, it's not working, but I
>> don't have a clue why. I hope someone can explain me what I did wrong.
>>
>>  Judging from the traceback, the problem is that you're trying to call a
> signal, but it's not callable.
>
> After a brief look, I found this:
>
> https://qt-project.org/wiki/Signals_and_Slots_in_PySide
>
> To me it looks like you should be doing this instead (untested):
>
> self.fromComboBox.currentIndexChanged.connect(self.update_ui)
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable" Juan Christian <juan0christian@gmail.com> - 2014-08-30 16:17 -0300

csiph-web