PDA

View Full Version : how to covert an object text to string?



KLIA
April 6th, 2009, 01:35 PM
hey guys

This is in Pyqt

i have this code

filename=os.path.basename(self.lwitem.text())

which self.lwitem.text() holds my filename path but i wanna convert it into a string how am i gonna do that??


Thanks

simeon87
April 6th, 2009, 01:51 PM
You could try str (http://docs.python.org/library/functions.html#str).