[PyKDE] QTextEdit.setAutoFormatting() has an invalid type

Hans-Peter Jansen hpj at urpla.net
Mon Jul 3 15:25:20 BST 2006


Hi Phil,

I just stumbled on this one:

~> pyuic -x -o form1.py form1.ui
~> python form1.py 
Traceback (most recent call last):
  File "form1.py", line 54, in ?
    w = Form1()
  File "form1.py", line 33, in __init__
    self.textBrowser.setAutoFormatting(QTextBrowser.AutoAll)
TypeError: argument 1 of QTextEdit.setAutoFormatting() has an invalid 
type

Hand editing QTextBrowser.AutoAll to QTextEdit.AutoAll didn't make a 
difference.

Any idea?

~> ~/bin/pyqtver.py 
Python version: 2.4
sip version: 4.4.5
Qt version: 3.3.6
PyQt version: 3.16

Cheers,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: form1.ui
Type: application/x-designer
Size: 1198 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060703/b444ab27/form1.bin


More information about the PyQt mailing list