Python Signal/Slot + QThred code analysis

Juan Christian juan0christian at
Tue Nov 25 14:58:15 CET 2014

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

def output_slot():
    outpost = Outpost('123456')
    MainWindow.vlay.addWidget(create_box(outpost.info_a + " : " +


But I'm getting this:

Traceback (most recent call last):
  File "D:\Documents\PyCharm\Trader\Trader\core\", line 18, in run
    with'div.stat_box div.value')[0].get_text().replace(',',
'') as trades, \
AttributeError: __exit__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list