View Single Post
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#8
Originally Posted by daperl View Post
The appended script returned:
Code:
yes
yes
no
and it should be robust.

Code:
import gobject
import gtk

myContainer = gtk.Window()
if gobject.type_is_a(myContainer,gtk.Window):
  print 'yes'
else:
  print 'no'
if gobject.type_is_a(myContainer,gtk.Container):
  print 'yes'
else:
  print 'no'
if gobject.type_is_a(myContainer,gtk.Label):
  print 'yes'
else:
  print 'no'
Yep! It worked.
However, I have a dialog box, and this changed the font of the "OK" button, but not the dialog text font...

Any clues?

Thanks once again!
L.