klia writes:
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??
You mean self.lwitem.text() is a QString and want to convert it to a string? str(self.lwitem.text()) But you probably want to convert it to unicode instead using unicode() _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
