Fabrice: Instead you can do...
if os.name == "posix" : icon_theme = gtk.icon_theme_get_default() pixbuf = icon_theme.load_icon ('stock_person', 50, gtk.ICON_LOOKUP_USE_BUILTIN) elif os.name == "nt" : pixbuf = None
Fabrice: Instead you can do...
if os.name == "posix" :
icon_ theme = gtk.icon_ theme_get_ default( )
pixbuf = icon_theme. load_icon ('stock_person', 50, gtk.ICON_ LOOKUP_ USE_BUILTIN)
elif os.name == "nt" :
pixbuf = None