Heya
This is silly but I cant break it.
I have text in textEdit
testa
testb
testc
I want it to look like this
testa;testb;testc;
I got as far as getting it all in 1 line but I cant figure out how to add ; :/
fromQT = self.qe.toPlainText()
toPlain=str(fromQT)
prefix = ''.join((';',toPlain))
mystr = ''.join([line.strip() for line in prefix])
fromQT = self.qe.toPlainText()
toPlain=str(fromQT)
prefix = ''.join((';',toPlain))
mystr = ''.join([line.strip() for line in prefix])
To copy to clipboard, switch view to plain text mode
Thanks in advice.
Bookmarks