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


Groups > comp.lang.python > #77325

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'tutorial': 0.03; 'subject:Python': 0.06; '<>,': 0.07; 'newest': 0.09; 'python': 0.11; 'callable.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'link,': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'url:qt- project': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'trying': 0.19; 'everyone,': 0.19; 'header:User-Agent:1': 0.23; 'why.': 0.24; 'guys': 0.24; 'looks': 0.24; 'question': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'url:wiki': 0.31; 'problem': 0.35; 'received:84': 0.35; 'but': 0.35; 'skip:s 60': 0.36; 'doing': 0.36; 'url:org': 0.36; 'should': 0.36; 'christian': 0.38; 'mine': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'signal': 0.60; 'subject:"': 0.60; 'hope': 0.61; 'new': 0.61; "you're": 0.61; 'different': 0.65; 'url:v': 0.71; 'url:youtube': 0.71; 'url:watch': 0.77; 'working,': 0.84; 'old,': 0.85
X-CM-Score 0.00
X-CNFS-Analysis v=2.1 cv=S6lXwecP c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=u9EReRu7m0cA:10 a=Q2BkLBDHMNcA:10 a=NN_nzqVhJ7gA:10 a=ihvODaAuJD4A:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=fGO4tVQLAAAA:8 a=N1rExGDRAAAA:20 a=1pLMaboaAAAA:8 a=Vpwlhw2H5NEtgYBDM4gA:9 a=QEXdDO2ut3YA:10
X-AUTH mrabarnett:2500
Date Sat, 30 Aug 2014 20:05:48 +0100
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version 1.0
To python-list@python.org
Subject Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable"
References <CAAp0bGv4mvHteLBYkemLHS_vDkgeuS0r_fO8G2PpbKOjk2aC8A@mail.gmail.com>
In-Reply-To <CAAp0bGv4mvHteLBYkemLHS_vDkgeuS0r_fO8G2PpbKOjk2aC8A@mail.gmail.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13647.1409425556.18130.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1409425556 news.xs4all.nl 2877 [2001:888:2000:d::a6]:59171
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77325

Show key headers only | View raw


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)

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" MRAB <python@mrabarnett.plus.com> - 2014-08-30 20:05 +0100

csiph-web