PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 166 - AttributeError: type object 'QTextLayout' has no attribute 'FormatRange'
: AttributeError: type object 'QTextLayout' has no attribute 'FormatRange'
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.2.3
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-02-23 16:08 EET by Anderson Lizardo
Modified: 2010-03-24 16:34 EET (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anderson Lizardo 2010-02-23 16:08:10 EET
This code:

from PySide import QtGui
print QtGui.QTextLayout.FormatRange()

Fails with:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: type object 'QTextLayout' has no attribute 'FormatRange'

This was taken from examples/richtext/syntaxhighlighter/syntaxhighlighter.py
Comment 1 renato filho 2010-02-24 10:53:18 EET
fixed on shiboken commit c3ace01b0c18b340e2453771ab529bce694d621b.