开发者

How to Specify URI to a local File in PyGtk LinkButton

I need to create a link button (gtk.LinkButton) with an URI to a local file. Does anyone know what is a valid URI format for a local file ? I want to specify a relative folder example: ../some_folder/file_i_need_to_open.txt

If this is can't be done, I don't mind putting the file in the same folde开发者_如何学运维r as the python source code =)

Thank you.


Something like: file:///usr/bin/ is generally used for local URI. But maybe just /usr/bin/ works too. Have you tried it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜