After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669371 - Unable to initialize Pango.AttrFontDesc
Unable to initialize Pango.AttrFontDesc
Status: RESOLVED DUPLICATE of bug 646788
Product: pygobject
Classification: Bindings
Component: introspection
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-04 18:08 UTC by Osmo Salomaa
Modified: 2012-02-08 04:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Osmo Salomaa 2012-02-04 18:08:59 UTC
Tried a couple ways to initialize a pango font description attribute. None succeeded in such a way that the font description could actually be set.

>>> desc = Pango.FontDescription("monospace 12")
>>> attr = Pango.AttrFontDesc(desc=desc)
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
TypeError: function takes at most 0 arguments (1 given)
>>> Pango.AttrFontDesc.new(desc)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'AttrFontDesc' has no attribute 'new'
>>> attr = Pango.AttrFontDesc()
>>> attr.desc = desc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: unable to set value for field
>>>
Comment 1 Jose Rostagno 2012-02-07 20:38:14 UTC
this is actually a pango bug https://bugzilla.gnome.org/show_bug.cgi?id=646788
Comment 2 Martin Pitt 2012-02-08 04:49:44 UTC

*** This bug has been marked as a duplicate of bug 646788 ***