Re: Beginner: Formatting text output (PyQt4) Solved

2007-04-23 Thread Steve Holden
Glen wrote: > Sorry I've been away a while, figuring stuff out. It absolutely wasn't a > monospaced font that I was using. I'm still getting used to Qt Designer > and didn't see the expandable item under 'font' where I could easily > select another font. I felt pretty stupid when I saw it. My p

Re: Beginner: Formatting text output (PyQt4) Solved

2007-04-23 Thread Glen
Sorry I've been away a while, figuring stuff out. It absolutely wasn't a monospaced font that I was using. I'm still getting used to Qt Designer and didn't see the expandable item under 'font' where I could easily select another font. I felt pretty stupid when I saw it. My program output the co

Re: Beginner: Formatting text output (PyQt4)

2007-04-20 Thread David Boddie
On Thursday 19 April 2007 00:50, Glen wrote: > What seems to be happening is that the font that pyqt is using is not > fixed width, so I did this: > qTxtFormat = QTextCharFormat() > qTxtFormat.setFontFixedPitch(True) > ui.textEdit.setCurrentCharFormat(qTxtFormat) It may be that the font you're us

Re: Beginner: Formatting text output (PyQt4)

2007-04-19 Thread Jeremy Sanders
Glen wrote: > What seems to be happening is that the font that pyqt is using is not > fixed width, so I did this: > qTxtFormat = QTextCharFormat() > qTxtFormat.setFontFixedPitch(True) > ui.textEdit.setCurrentCharFormat(qTxtFormat) Does something like ui.textEdit.setCurrentFont(QFont('fixed')) wor

Re: Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Tina I
Glen wrote: >> Hello again, I don't blame anyone for not answering my last post, > since >> I obviously hadn't spent much time researching, but I've come a little >> ways and have another question. >> >> How can I better format text output to a QTextEdit object? I'm >> inserting 5 columns into

Re: Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Glen
On Wed, 18 Apr 2007 22:50:14 +, Glen wrote: Ok, obviously, my post didn't come out the way I wanted it to. In the first example from my text file below, the dictionary pairs, constructed from sorted tuples were in straight columns. When I write them to my QTextEdit, however, the columns are

Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Glen
Hello again, I don't blame anyone for not answering my last post, since I obviously hadn't spent much time researching, but I've come a little ways and have another question. How can I better format text output to a QTextEdit object? I'm inserting 5 columns into each row. When I write the info