XML GUI [英] XML GUI

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

问题描述

查找有关使用配置文件创建GUI的信息

(如XML文件或其他内容)。另外,如何将动作(按钮

点击,菜单选择等)映射到XML?


建立GUI的任何其他建议Python项目......甚至

Jython。


谢谢

Looking for information on creating a GUI using a configuration file
(like an XML file or something). Also, how do you map actions (button
clicks, menu selections, etc) to the XML?

Any other suggestions for building GUI''s for Python projects...even
Jython.

Thanks

推荐答案

我必须为我正在工作的项目执行类似的操作

前,这是一个基于alota插件的程序,它将使用配置

文件看起来像是一个Xorg配置,它看起来有点难以

当时但它实际上非常有趣和简单,困难的部分是

功能你想要确保你在解决这个问题之前已经计划好了所有的东西

,就像绑定一样,我所做的就是键入

我要在配置中调用的方法,以及然后我会用eval()来表示

调用它,有点草率但它运行正常。

I had to do something like this for a project I was working on a while
ago, it was a program based on alota plugins that would use a config
file that looked sorta like an Xorg configuration, it seemed kinda hard
at the time but it''s acctually pretty fun and easy, the hard part is
functionality you wanna make sure that you have everything planed out
before tackling this, as for bindings and whatnot all I did was type
the method I want to call in the config, and then I would use eval() to
call it up, kinda sloppy but it worked fine.


如果gtk是你的选择工具包(使用pygtk)你可以设计你的用户

界面在林间空地(将其保存为xml文件),然后在运行时使用libglade加载它




更多信息请查看pygtk.org

我和faq http://www.async.com.br/faq/pygtk/index.py?req=all ( - >

特别是第22节 - libglade)

if gtk is your toolkit of choice (using pygtk) you can design your user
interface in glade (which saves it as an xml file) and then load it
during runtime using libglade

for more information check pygtk.org
iand the faq http://www.async.com.br/faq/pygtk/index.py?req=all (-->
especially section 22 - libglade)


wxPython怎么样?我感兴趣的是在各种操作系统(win,mac,* nix)上看起来很原生的东西。


任何关于在XML上使用wxPython的好教程?

how about wxPython? I am interested in something that will look native
on various operating systems (win, mac, *nix).

any good tutorial on using wxPython with XML?


这篇关于XML GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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