2010-05-12 52 views

回答

5

嘗試gio.content_type_get_icon()。例如:

>>> gio.content_type_get_icon ('text/python') 
<gio.ThemedIcon at 0xb7d0f734: text-python, gnome-mime-text-python, text-x-generic> 
+0

不錯,謝謝:) – Joril 2010-05-13 11:36:45