Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77325
| Date | 2014-08-30 20:05 +0100 |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Subject | Re: PySide 1.2.2 and Python 3.4.1 - "native Qt signal is not callable" |
| References | <CAAp0bGv4mvHteLBYkemLHS_vDkgeuS0r_fO8G2PpbKOjk2aC8A@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13647.1409425556.18130.python-list@python.org> (permalink) |
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
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