PyGtk CellRendererProgress 开始/结束位置

发布于 2024-12-08 11:23:56 字数 326 浏览 1 评论 0原文

有没有办法填充 gtk.CellRendererProgress 指示开始 和最终位置?不只是结束。

作为我需要做的一个例子,而不是这样:

|##############################----------| (from 0% to 80%)

我需要这样做:

|--------######################----------| (from 25% to 80%)

它就像一个脉冲进度条,但没有移动,我需要指定条开始和结束的百分比。

谢谢

Is there any way to fill a gtk.CellRendererProgress indicating the start
and end positions? Not just the end.

As an example of what I would need to do is, instead of this:

|##############################----------| (from 0% to 80%)

I need to do this:

|--------######################----------| (from 25% to 80%)

It's like a pulsing ProgressBar but without moving and I need to specify at wich percentage the bar starts and ends.

Thanks

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

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

发布评论

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

评论(1

治碍 2024-12-15 11:23:56

不,你不能那样做。但是您可以根据 CellRendererProgress 的代码编写一个自定义单元格渲染器来执行此操作。

No, you can't do that. But you can write a custom cell renderer that does that, based on the code for CellRendererProgress.

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