Python Signal/Slot + QThred code analysis
MRAB
python at mrabarnett.plus.com
Tue Nov 25 10:41:39 EST 2014
More information about the Python-list mailing list
Tue Nov 25 10:41:39 EST 2014
- Previous message (by thread): Python Signal/Slot + QThred code analysis
- Next message (by thread): Fwd: Python Signal/Slot + QThred code analysis
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2014-11-25 13:58, Juan Christian wrote: > On Mon Nov 24 2014 at 11:56:31 PM Michael Torrie <torriem at gmail.com > <mailto:torriem at 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.
- Previous message (by thread): Python Signal/Slot + QThred code analysis
- Next message (by thread): Fwd: Python Signal/Slot + QThred code analysis
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list