如何使GUI内的形象呢?它有可能在BashScript还是让我们来学习一门新的语言? [英] How to bring an image inside a GUI? Its possible in BashScript or Let's learn a new language?

查看:301
本文介绍了如何使GUI内的形象呢?它有可能在BashScript还是让我们来学习一门新的语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发展在Bashscript我的第一个pretty应用,嗯...

I am developing my first pretty application in Bashscript, hmm...

所以..我对这个第一次尝试开始某种图形用户界面的它,用的zenity 。但我想带来一些视觉艺术的GUI内,没有任何功能可言,只是一些视觉艺术。 我想最终的应用是跨操作系统的可执行文件。

So.. I am starting some kind of GUI for it, with zenity on this first try. But I want to bring some visual art inside the GUI, with no function at all, just some visual art. I want the final application to be cross-os executable.

如何只显示一个GUI框内的图像? (也许只是一个OK按钮,或什么都没有,只是显示在一段时间内的图像)。

How to just show an image inside a GUI box? (Maybe with just a OK button, or nothing, just show the image for some time).

此Any容易的解决方案?在BashScript或什么?任何解决方案,特别是在C,或其他语言,是pciatted太看得起AP $ P $ ...

Any "easy" solution for this? In BashScript or whatever? Any solution, specially in C, or other languages, is highly appreciatted too...

感谢您attenttion,有一个美好的一天。

Thanks for your attenttion, have a good day.

我发现格莱德用GTK,却不得不深呢。任何其他解决办法?

I found Glade with gtk, but have to deep in yet. Any other solution?

修改

我想最终的应用是跨操作系统的可执行文件。

哎... pretty路...我发现的 一个疯狂的家伙像我这样,他想要一个GTK图形界面与Bashscript!我不是世界上唯一疯狂的家伙,哈哈....

Hey... Pretty road... I found a crazy guy like me, he wants a GTK GUI with Bashscript! I am not the only crazy dude in the world, lol....

和我想要一个易解决方案,只是因为我需要的我的程序是非常简单的, GUI显示图像,按钮和完成。只是为了澄清。

And I want a "easy" solution, just because what I need for my program is really simple, GUI shows image, buttons, and done. Just to clarify.

推荐答案

显示命令http://www.imagemagick.org/脚本/ index.php的相对=nofollow> ImageMagick的

Use the display command in ImageMagick:

$ display img.png

有将显示在GUI窗口中的图像。

It will show the image in a GUI window.

这篇关于如何使GUI内的形象呢?它有可能在BashScript还是让我们来学习一门新的语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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