用于快速更新屏幕图像的 Python 中的 GUI 应用程序 [英] GUI applications in python for fast update of on-screen images

查看:23
本文介绍了用于快速更新屏幕图像的 Python 中的 GUI 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我提前为我的菜鸟道歉;我刚开始编程.

你能帮我确定一个 GUI 框架的正确路径吗?考虑到我普遍缺乏专业知识,查看 这个 GUI 框架列表 非常令人生畏.>

总结:

我正在尝试用 python 编写一个 GUI,它使用使用 numpy 数学生成的图像主动更新第二个监视器.GUI 将具有可以实时调整的参数,从而相应地改变图像(光的干涉图案).

重要标准:

  • 屏幕上调整的参数实时改变干涉图
  • numpymatplotlib(或简单绘图)的兼容性

次要条件:

  • 一个对工业编程感兴趣的初学者有用/灵活的框架
  • 双显示器支持(如果迫不得已,我可以只更新窗口中的图像并将窗口移动到第二台显示器)
  • 作为一个附带项目,我想编写一个股票交易界面(带有图表、命令等...也许是 PyAlgoTrade?),所以,一旦再次,灵活性会很好

现在我倾向于 wxpython,因为我听说 matplotlib (用于股票交易 GUI ).在我踏上这条道路之前(并且可能会被新文档淹没),我想确保我不会走上一条不必要的风路.

非常感谢任何有用的链接!您的关键字相关性"知识可能比我的要好得多.

谢谢!

解决方案

Tkinter GUI for python

要快速了解 matplotlib 如何直接进入基于 Tkinter 的 GUI,包括与 Tkinter 实时控制循环共同集成的完全可操作的模型-视觉-控制器三脚架,请仔细阅读此食谱:https://stackoverflow.com/a/25769600/3666197<<重要>> &<<次要>>参数满足.

快速更新

Numpy 是一种通用语言,所以说它是必须的是毫无价值的.

良好的实时 UI/事件处理设计是重要的.糟糕的 MVC/控制循环可能会杀死其他智能系统(从一些专业分布式交易系统的最新更新中可以看出,其中 UI 响应性远远低于可接受的 UI 交互延迟,有时甚至冻结 UI 交互几十秒

有一些技术可以构建 matplotlib 对象(具有预烘焙的数据结构),可以加速任何实时更新以更快地传播到 GUI-Visual-layer

I apologize in advance for my noob-ness; I'm just getting into programming.

Can you set me down the right path for a GUI framework? Looking at this list of GUI frameworks is pretty daunting, considering my general lack of expertise.

Summary:

I'm trying to write a GUI in python that actively updates a second monitor with images that are mathematically generated using numpy. The GUI will have parameters that can be adjusted in real time that change the image (an interference pattern of light) accordingly.

Important criteria:

  • parameters adjusted on screen change the interference pattern in real time
  • compatibility with numpy, matplotlib (or easy graphing)

Secondary criteria:

  • a framework that is useful/flexible for a beginner who's interested in industry programming
  • dual monitor support (if push comes to shove I can just update the image in a window and move the window to the second monitor)
  • as a side project I'd like to write a stock trading interface (with graphs, commands, etc... maybe with PyAlgoTrade?), so, once again, flexibility would be nice

Right now I'm leaning towards wxpython, since I've heard that it's flexible with matplotlib (for stock trading GUI's). Before I head down this path (and likely overwhelm myself with new documentation), I'd like to make sure I'm not heading down an unnecessarily windy road.

Any useful links are much appreciated! Your 'keyword relevance' knowledge is likely much better than mine.

Thank you!

解决方案

Tkinter GUI for python

To have a fast idea, how matplotlib may get directly into a Tkinter based GUI, included a fully operational Model-Visual-Controller tripod co-integrated with Tkinter real-time control-loop, kindly go through this recipe: https://stackoverflow.com/a/25769600/3666197 Both <<Important>> & <<Secondary>> parameters met.

Fast updates

Numpy is a lingua franca, so telling that it is a must is worthless.

Good Real-Time UI / Event-handling design is cardinal. Poor MVC/control-loop may kill otherwise smart system ( as seen from recent updates of some professionally distributed trading system, where UI-responsiveness fell by far under an acceptable UI-interaction latency and sometimes even freezes UI-interactions for several tens of seconds

There are techniques to construct matplotlib objects ( having pre-baked data-structures ), that accelerate any real-time updates to get propagated faster onto GUI-Visual-layer

这篇关于用于快速更新屏幕图像的 Python 中的 GUI 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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