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


Groups > comp.lang.python > #81517 > unrolled thread

Re: Python Signal/Slot + QThred code analysis

Started byMRAB <python@mrabarnett.plus.com>
First post2014-11-25 15:41 +0000
Last post2014-11-25 15:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python Signal/Slot + QThred code analysis MRAB <python@mrabarnett.plus.com> - 2014-11-25 15:41 +0000

#81517 — Re: Python Signal/Slot + QThred code analysis

FromMRAB <python@mrabarnett.plus.com>
Date2014-11-25 15:41 +0000
SubjectRe: Python Signal/Slot + QThred code analysis
Message-ID<mailman.16287.1416930108.18130.python-list@python.org>
On 2014-11-25 13:58, Juan Christian wrote:
> On Mon Nov 24 2014 at 11:56:31 PM Michael Torrie <torriem@gmail.com
> <mailto:torriem@gmail.com>> wrote:
> Looks alright. Does it work?
>
> Well, no =/
>
> First I had to remove the multiple inheritance, because Qt doesn't allow
> that, so I removed the QObject.
>
> Second, just for testing I'm calling the module directly using:
>
> timer = QTimer()
> timer.start(5000)
>
> def output_slot():
>      outpost = Outpost('123456')
>      outpost.start()
>      MainWindow.vlay.addWidget(create_box(outpost.info_a + " : " +
> outpost.info_b))
>
> timer.timeout.connect(output_slot)
>
> But I'm getting this:
>
> Traceback (most recent call last):
>    File "D:\Documents\PyCharm\Trader\Trader\core\outpost.py", line 18,
> in run
>      with soup.select('div.stat_box div.value')[0].get_text().replace(',', '') as trades, \
> AttributeError: __exit__
>
I think that the problem there is that strings don't have an __exit__
method.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web