0
在gtk.gdk.pixbuf_new_from_file(image)
,如果「形象」不是絕對路徑,我得到:如何使「gtk.gdk.pixbuf_new_from_file()」使用相對路徑?
glib.GError: Failed to open file 'image.png': No such file or directory
那除非我在目錄中的圖像生命哪裏來的。
note1:我運行的是Debian Squeeze,它默認使用Python 2.6。
note2:圖像和腳本生活在一個目錄中。
您能否提供一些有關執行環境(Python版本,操作系統等)的其他信息? – Michael 2010-11-30 00:09:51