Bryan Clark wrote:
On Sat, 2004-02-14 at 01:41 +1100, Russell Shaw wrote:
I just learnt python and pango. I get this error:
python db.py
Traceback (most recent call last): File "db.py", line 68, in edit_mans attrlist=pango.AttrList() NameError: global name 'pango' is not defined
I've imported gtk. Is there something else i should import? (i'm using debian)
> Hi Russell ~ > > Try importing pango as well. > > import pango > > Hope that helps, > ~ Bryan
Hi, How do i make the first letter of a gtk_label bold? I tried:
label=gtk.Label("Name") attrlist=pango.AttrList() attr=pango.AttrWeight(pango.WEIGHT_BOLD) attrlist.insert(attr) label.set_attributes(attrlist)
That should have worked.
John
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
