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


Groups > comp.lang.python > #81511

Re: Python Signal/Slot + QThred code analysis

References <CAAp0bGttki1B=1q5SX_C39L_dRB22YOQiTbVxdvo4jSee0srcw@mail.gmail.com> <CAAp0bGsgMTK7MS1Wvh13304et7Bb7XUyfZTU8ZmF2++BuLj7dw@mail.gmail.com> <5473E188.5020608@gmail.com>
From Juan Christian <juan0christian@gmail.com>
Date 2014-11-25 13:58 +0000
Subject Re: Python Signal/Slot + QThred code analysis
Newsgroups comp.lang.python
Message-ID <mailman.16284.1416923898.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

On Mon Nov 24 2014 at 11:56:31 PM Michael Torrie <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__

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


Thread

Re: Python Signal/Slot + QThred code analysis Juan Christian <juan0christian@gmail.com> - 2014-11-25 13:58 +0000

csiph-web