I'm trying to get myself a decent RSS reader in python. It's supposed to be a pure console application. My question is-as mentioned in the title-how to open a link within this console. So e.g theres a recent feed entry and i want to click on it and it should open the linked website in a browser. Is this possible and if yes I would be glad if you could help me
问问题
359 次
1 回答
1
由于您使用的是 Windows,因此您可以使用 Windows 控制台功能来检测控制台上的点击,通过点击测试将点击位置(已经是字符位置)转换为链接,并将它们连接到例如webbrowser.open
打开链接。
此处描述了控制台应用程序的输入处理:http: //msdn.microsoft.com/en-us/library/windows/desktop/ms682079%28v=vs.85%29.aspx。
于 2013-09-13T20:40:41.023 回答