如何在Julia中制作GUI? [英] How to make a GUI in Julia?

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

问题描述

我是Julia编程的新手,我需要创建一个GUI. 我一直在寻找信息,但找不到任何有用的信息.我试图在Julia的官方网页上搜索信息,但是似乎不正确.我想知道你们是否知道我在哪里可以找到有关它的信息.

I'm new at programming in Julia and I need to create a GUI. I've been looking for information and I can't find anything useful. I tried to search information in the Julia official web page, but it seems to be down. I wonder if any of you guys knows where I can find information about it.

推荐答案

这是一个非常普遍的问题,但是我将尝试布置环境,以便您可以根据自己的需求做出明智的决定.

This is quite a generic question, but I'll try and lay out the environment so that you can make an informed decision based on your needs.

  • 如果您要在[Jupyter/IJulia]笔记本中进行代码开发,并且需要非常简单的交互(例如使用滑块更改某些输入值),则 Escher .受 Elm 的启发,它提供了UI组件的功能库.交互式Web UI是在100%Julia中创建的.客户端和服务器端之间的代码没有区别.该框架处理所有这些.
  • 另一个值得关注的Web框架是 Genie ,它基于传统的MVC设计模式.它还包括一个ORM.以下是Julia程序包的清单,它是用Genie编写的应用程序的示例: http://genieframework.com/packages
  • 如果您要创建跨平台的桌面应用程序,但要使用网络技术(例如HTML/CSS/Javascript),请使用闪烁.这是电子周围的Julia包装.您可能会编写一个Escher应用程序,并包装在Blink.jl中以创建一个桌面应用程序.
  • 要使用 Gtk 库创建桌面UI应用程序,请使用 Tk 框架具有
  • If you are developing you code within an [Jupyter/IJulia] notebook, and need very simple interaction, such as slider to change some input values, the Interact package is the easiest thing to get started with.
  • To develop full fledged web UIs, take a look at Escher. Inspired by the Elm, it provides a functional library of UI components. Interactive web UIs are created in 100% Julia. There is no differentiation in code between the client and server sides. The framework handles all of that.
  • Another web framework worth looking at is Genie, which based on the traditional MVC design pattern. It also includes an ORM. An example of an application written in Genie is this listing of Julia packages: http://genieframework.com/packages
  • If you want to create cross platform desktop apps, but want to work with web technologies (i.e. HTML/CSS/Javascript), use Blink. This is a Julia wrapper around the Electron. You could potentially write an Escher application, and wrap in in Blink.jl to create a desktop app.
  • To create desktop UI applications using the Gtk library, use the Gtk.jl package in Julia. If you are familiar with the Gtk API, it is easy to get started. Note that sometimes it can get complicated to install all the Cairo related dependencies, so be prepared to troubleshoot this.
  • And last, but not the least, the venerable Tk framework has a wrapper in Julia. The UI's created using TK are sometimes considered ugly compared with modern aesthetics, but sometimes this is the quickest way to get a window up.

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

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