2010-05-12 53 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