创建一个在 Linux 和 Windows 上包装命令行程序的 GUI 应用程序 [英] Creating a GUI application that wraps command-line programs on Linux and Windows

查看:72
本文介绍了创建一个在 Linux 和 Windows 上包装命令行程序的 GUI 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个 GUI 应用程序,它可以让用户与命令行程序进行交互.在这种情况下,程序是晶体学程序.它们需要很长时间才能运行.

I'm writing a GUI application that will let users interact with command-line programs. The programs are crystallography programs, in this case. They take a long time to run.

使用命令行程序有一些常见的工作流程.一个程序的输出通常会被处理,然后被其他程序使用.用户需要能够填写各种文本框并选择发送到命令行程序的选项.

There's a certain common workflow using the command-line programs. The output from one program is typically processed and then is used by other programs. The user needs to be able to fill in various text boxes and select options that are sent to the command-line programs.

由于我很懒惰,不想做多余的工作,有哪些工具可以帮助我做到这一点?该软件最初需要在 Linux 上运行,但有时也可以在 Windows 上运行.

As I'm lazy and don't want to do more work than I need to, what tools are out there that will help me in doing this? The software needs to work initially on Linux, but also running on Windows at some point would be neat.

如果有某种 DSL 可供非程序员扩展/修改 GUI 应用程序(添加新程序和更改选项等),那也会很整洁.

Would also be neat if there was some sort of DSL for non-programmers to be able to extend/modify the GUI application (to add new programs and change the options and so on).

推荐答案

看一看 GTK Server 它可以从任何语言轻松编写脚本,并且由于它作为服务运行(有点像浏览器),因此可以跨系统使用.也就是说,运行命令行东西的系统可以在一个强大的系统上,而 GTK Server 可以在用户的​​桌面 PC 上运行.这些例子很容易理解,版本和语言的矩阵必然包括你的.如果您不走运,请选择最接近的组合作为示例.

Take a look at GTK Server it is easily scriptable from any language and since it runs as a service (bit like a browser) it can be used across systems. That is, the system running the command line stuff can be on a powerful system and the GTK Server running on the user's desktop PC. The examples are easy to follow and the matrix of versions and languages is bound to include yours. If you are unlucky, just pick the closest combination for examples.

这篇关于创建一个在 Linux 和 Windows 上包装命令行程序的 GUI 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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