开发者

How to Specify URI to a local File in PyGtk LinkButton

开发者 https://www.devze.com 2023-03-13 16:40 出处:网络
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/

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

精彩评论

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