Thread
:
[Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
View Single Post
noobmonkey
2010-02-19 , 19:29
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#
61
you two really are very helpful!
Trying each of them, but onto the next bit
I have a string full of lots of words (for example apt-cache pkgnames)
So my String looks like:
entry1
entry2
entry 3....
entry 200
etc..
Trying to add these to a QT listwidget, but guessing readlines and xreadlines are only for reading files. Is there a python code to read lines within a string? or is it a bit more complicated then that?
Tried with this:
Code:
for line in j.readlines(): self.listWidget.addItem(line)
__________________
----------- Follow me on
Twitter
here
----------- My
Photography Website and Blog
is
here
----------- Author of the N900
Health Check Application
----------- New Version in Extras Devel (Dec 2010 -
2.9.10
)
----------- Are you on the N900 World Map? -
http://pininthemap.com/maemo
- masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo
in the future
? -
Quote & Reply
|
noobmonkey
View Public Profile
Send a private message to noobmonkey
Find all posts by noobmonkey