View Single Post
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#10
Originally Posted by daperl View Post
From the gtk.Dialog reference page:



So, maybe you have to traverse these containers individually.

myDialog.vbox
myDialog.action_area
Acutally, I have a gtk.messagedialog. I tried with vbox, action_area and label, and the actual dialog font stays the same. This is my code (that I call with self.changePango(dialog.label), self.changePango(dialog.vbox), self.changePango(dialog.action_area),
self.changePango(dialog)):

Code:
def changePango(self, child):
   if gobject.type_is_a(child,gtk.Container):
        for subChild in child.get_children():
            self.changePango(subChild)
   else:
   child.modify_font(pango.FontDescription("courier bold 60"))
What am I doing wrong??

Thanks again,

L.