Dariusz
1st October 2013, 21:31
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])
Thanks in advice.
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])
Thanks in advice.