一个 wxPython 时间轴小部件

发布于 2024-07-17 07:44:14 字数 429 浏览 9 评论 0原文

我正在寻找某个 wxPython 小部件在我的程序中使用。 我希望存在这样的东西,并且您可能知道在哪里可以找到。 我将尝试描述我正在寻找的功能:

想象一下 Audacity 用于显示音轨的小部件。 这是一个带有标尺的水平时间线。 可以放大和缩小以及滚动,并且标尺会更新以反映您在时间轴上的位置/深度。 只有时间线的有限段被“占用”,即实际上包含数据。 其余的都是空的。 可以用鼠标选择时间线上的任意时间点,当然也可以让它“播放”:以指定的速度从左向右遍历时间线。

如果您知道至少与我所描述的内容接近的东西,我会很感兴趣。


如果您想知道这个小部件的工作是什么:它是用于运行模拟的程序。 该程序在后台计算模拟,延长了时间线的“占用”部分。 可以选择时间轴上的不同点来观察系统在某个时间点的状态,当然也可以玩模拟。

谢谢!

I am looking for a certain wxPython widget to use in my program. I hope that something like this exists and that you might know where to find. I will try to describe the functionality I'm looking for:

Imagine something like the widget that Audacity uses to display an audio track. It's a horizontal timeline, with a ruler. It is possible to zoom in and out, and to scroll, and the ruler updates to reflect where / how deep you are on the timeline.
Only a finite segment of the timeline is "occupied", i.e., actually contains data. The rest is empty.
It is possible to select with the mouse any time point on the timeline, and, of course, it is possible to let it "play": to traverse the timeline from left to right in a specified speed.

If you know something that's at least close to what I describe, I'd be interested.


If you want to know what the job of this widget is: It's for a program for running simulations. The program calculates the simulation in the background, extending the "occupied" part of the timeline. It is possible to select different points in the timeline to observe the state of the system in a certain timepoint, and of course it is possible to play the simulation.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

左秋 2024-07-24 07:44:14

快速的网络搜索不会产生任何结果,但其他人也希望得到同样的结果。 我的猜测是你不会找到任何好的时间线 wx 小部件。 最接近的可能是 wxSlider。 这远非理想,但它会让您启动并运行。 您还可以考虑创建一个 自定义小部件 - 这绝对可以满足您的需求,但这将是一个很大的工作量。 抱歉,我没有更好的答案,但我认为有答案总比没有好。

A quick web search doesn't yield anything but others hoping for the same thing. My guess is you won't find any nice wx widgets for timelines. The closest you're likely to get is a wxSlider. This is far from ideal, but it'll get you up and running. You can also look at creating a custom widget -- that'd definitely do what you want, but it will be a lot of work. Sorry I don't have anything better, but I figured some answer is better than nothing.

森林迷了鹿 2024-07-24 07:44:14

我一直在开发用于任务教练的时间线小部件(http://www.taskcoach.org) 。 我还没有单独发布它,但它与 Task Coach 源代码的其余部分完全隔离,因此您应该能够轻松地将其删除。 请参阅http://taskcoach.svn.sourceforge。净/viewvc/taskcoach/trunk/taskcoach/taskcoachlib/thirdparty/timeline/

I have been working on a timeline widget for use in Task Coach (http://www.taskcoach.org). I haven't released it separately yet, but it is fully isolated from the rest of the Task Coach source code so you should be able to rip it out quite easily. See http://taskcoach.svn.sourceforge.net/viewvc/taskcoach/trunk/taskcoach/taskcoachlib/thirdparty/timeline/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文