|
2010-02-10
, 08:38
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#2
|
self.ui.listTubeLine.currentItem().text().encode('ascii','ignore')
The Following User Says Thank You to danielwilms For This Useful Post: | ||
|
2010-02-10
, 09:16
|
Posts: 127 |
Thanked: 54 times |
Joined on Nov 2009
|
#3
|
|
2010-02-10
, 20:21
|
Posts: 127 |
Thanked: 54 times |
Joined on Nov 2009
|
#4
|
for Station in TubeStationList[self.ui.listTubeLine.currentItem().text().toAscii()].values(): KeyError: PyQt4.QtCore.QByteArray('district')
for Station in TubeStationList['district'].values():
I've been following the excellent guide of how to create apps with python / Qt. I've got an issue which I hope somebody can resolve. I have a python app that gets tube details etc - and I'm trying to give it a nice front end.
When I try to assign a dictionary value I get the following error:
Thanks in advance