python中的Gnu / Linux对话框 [英] Gnu/Linux dialogue boxes in python

查看:99
本文介绍了python中的Gnu / Linux对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



好​​的,所以我有心情尝试这个:告诉用户应用程序在图形对话中需要哪些模块

在什么

系统已安装。 (它将无法在cli上输出)


我正在运行Kubuntu并且我似乎默认安装了''kdialog''(不是

肯定如果它是以股票形式出现的。)


野外还有哪些库存系统? Ubuntu的? Suse?

Fedora?其他人?


我会在python中包装它们,以便我可以使用第一个

对话系统为用户弹出消息。


(希望,自然,这已经完成了......?)


\ n

Hi,
Okay, so I am in the mood to try this: Inform the user about what modules
the app requires in a graphical dialogue that can vary depending on what
the system already has installed. (It will fail-to output on cli)

I am running Kubuntu and I seem to have ''kdialog'' installed by default (not
sure if it came as stock.)

What other ''stock'' systems are there out there in the wild? Ubuntu? Suse?
Fedora? Others?

I would take a stab at wrapping them in python so that I can use the first
dialogue system found to popup messages for the user.

(Hoping, natch, that this has already been done ... ? )

\d

推荐答案

11月30日14:55,Donn Ingle< donn.in ... @ gmail.comwrote:
On 30 Nov, 14:55, Donn Ingle <donn.in...@gmail.comwrote:



好​​的,所以我有心情尝试这个:告诉用户应用程序在图形对话框中需要什么模块

可能会有所不同,具体取决于系统已安装的
。 (它将无法在cli上输出)


我正在运行Kubuntu并且我似乎默认安装了''kdialog''(不是

肯定如果它是作为股票。)
Hi,
Okay, so I am in the mood to try this: Inform the user about what modules
the app requires in a graphical dialogue that can vary depending on what
the system already has installed. (It will fail-to output on cli)

I am running Kubuntu and I seem to have ''kdialog'' installed by default (not
sure if it came as stock.)



我认为它是KDE的一部分。您可以通过执行以下操作来检查...


dpkg -S kdialog


这应该告诉您提供它的包裹,可能是一个KDE软件包。


I think it''s part of KDE. You can check by doing something like...

dpkg -S kdialog

That should tell you about the package which provided it, which is
possibly one of the KDE packages.


其他什么股票系统在那里? Ubuntu的? Suse?

Fedora?其他?
What other ''stock'' systems are there out there in the wild? Ubuntu? Suse?
Fedora? Others?



有一个老式的图形对话工具Xdialog和

Zenity:gdialog奇怪命名的GNOME继承者。查看这篇文章

了解一些细节:

http://www.linux.com/articles/114156


我会尝试将它们包装在python中以便我可以使用为用户弹出消息的第一个

对话系统。


(希望,natch,这已经完成......?)
I would take a stab at wrapping them in python so that I can use the first
dialogue system found to popup messages for the user.

(Hoping, natch, that this has already been done ... ? )



我想为桌面模块[1]做这个,但是没有任何明显的对话工具支持Windows,我没有'''除了围绕KDialog,Zenity和Xdialog的简单包装外,还要继续进行任何
,因为其目的是覆盖比通常的类UNIX平台更多的东西。

但是,我可以单独提供该代码,或者有人可以告诉我Windows和Mac OS X如何设法执行相同的技巧。

也许一些需要创建令人讨厌的win32 API对话框手动上

Windows - 我当然没兴趣做的事情,但

有人可能会觉得这是令人兴奋的工作。


我以为那里有另外一个包裹这些

的程序,但我现在似乎无法找到它。不过,尝试制作通用界面肯定是值得的,因为每个程序提供的功能确实在某些重要方面有所不同
如果你真的只关心

便携性,你可能不会太在意
。例如,如果你想要一个选择列表,我会想起KDialog比Zenity提供了更多的灵活性

(它呈现各种东西的方法是公平的)有时可怕),

但是最低的共同点可能比阅读每个程序的所有选项和编码内容更好



你自己。


Paul


[1] http://www.python.org/pypi/desktop


Paul Boddie写道:
Paul Boddie wrote:

我没有比KDialog,Zenity和Xdialog的简单包装更进一步



因为目的是覆盖比平常类似UNIX的平台。

但是,我可以单独提供该代码
I didn''t proceed any
further than a simple wrapping around KDialog, Zenity and Xdialog,
since the aim is to cover more than the usual UNIX-like platforms.
However, I could make that code available separately



谢谢反馈和链接。我想用你的代码(如果你不记得!)如果它是GPL或类似的话 - 可能会节省我的时间。


任何人都知道是否可以可靠地假设zenity安装在典型的
Gnome桌面上?


\d

Thanks for the feedback and the links. I''d like to use your code (if you
don''t mind! ) if it''s GPL or something similar -- it may save me time.

Anyone know if zenity can be reliably assumed to be installed on a typical
Gnome desktop?

\d


[1] http: //www.python.org/pypi/desktop

哦,刚刚看到这个链接并获取了代码 - 将会浏览一下。


\ n

[1] http://www.python.org/pypi/desktop
Oh, just saw this link and fetched the code -- will have a look around.

\d


这篇关于python中的Gnu / Linux对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆