问题描述
我不能使用 wx.ProgressDialog
因为我需要向对话框添加额外的内容(暂停按钮和有关当前正在处理的内容的信息).是否有我可以在自己的对话框中使用的仅进度条控件?
I can't use wx.ProgressDialog
because I need to add extra contents to the dialog box (a pause button and information about what is currently being processed). Is there a control for just the progress bar that I can use in my own dialog box?
我当然可以自己画一些简单的东西,但由于程序需要在 Mac OS X、Windows 和 Linux 上运行,如果进度条具有原生外观会更好.
I could of course draw something simple myself, but since the program needs to run on Mac OS X, Windows, and Linux it would be better if the progress bars had a native look.
推荐答案
显示水平或垂直条的 wxGauge 怎么样?
http://www.wxpython.org/docs/api/wx.Gauge-class.html
What about wxGauge which displays a horizontal or vertical bar?
http://www.wxpython.org/docs/api/wx.Gauge-class.html
更完整的 C++ 文档:http://docs.wxwidgets.org/2.6/wx_wxgauge.html#wxgauge
More complete C++ doc:http://docs.wxwidgets.org/2.6/wx_wxgauge.html#wxgauge
这篇关于wxPython 进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!