1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. currentmodule:: wx.lib.progressindicator
.. highlight:: python
.. _wx.lib.progressindicator.ProgressIndicator:
==========================================================================================================================================
|phoenix_title| **wx.lib.progressindicator.ProgressIndicator**
==========================================================================================================================================
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html
<div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
<img id="toggleBlock-trigger" src="_static/images/closed.png"/>
Inheritance diagram for class <strong>ProgressIndicator</strong>:
</div>
<div id="toggleBlock-summary" style="display:block;"></div>
<div id="toggleBlock-content" style="display:none;">
<p class="graphviz">
<center><img src="_static/images/inheritance/wx.lib.progressindicator.ProgressIndicator_inheritance.png" alt="Inheritance diagram of ProgressIndicator" usemap="#dummy" class="inheritance"/></center>
</div>
<script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
<map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Panel.html" title="wx.Panel" alt="" coords="109,315,184,344"/> <area shape="rect" id="node6" href="wx.lib.progressindicator.ProgressIndicator.html" title="wx.lib.progressindicator.ProgressIndicator" alt="" coords="4,392,288,421"/> <area shape="rect" id="node2" href="wx.Window.html" title="wx.Window" alt="" coords="102,237,191,267"/> <area shape="rect" id="node3" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="39,5,140,35"/> <area shape="rect" id="node4" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="91,83,201,112"/> <area shape="rect" id="node7" href="wx.WindowBase.html" title="wx.WindowBase" alt="" coords="86,160,207,189"/> <area shape="rect" id="node5" href="wx.Object.html" title="wx.Object" alt="" coords="164,5,245,35"/> </map>
</p>
|
|super_classes| Known Superclasses
==================================
:class:`wx.Panel`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.lib.progressindicator.ProgressIndicator.__init__`
:meth:`~wx.lib.progressindicator.ProgressIndicator.onTimer`
:meth:`~wx.lib.progressindicator.ProgressIndicator.SetLabel` Set the text displayed in the label.
:meth:`~wx.lib.progressindicator.ProgressIndicator.SetRange` For determinante mode (non-pulse) set the max value that the gauge can
:meth:`~wx.lib.progressindicator.ProgressIndicator.SetValue` For determinante mode (non-pulse) update the progress indicator to the
:meth:`~wx.lib.progressindicator.ProgressIndicator.Start` Show (if necessary) and begin displaying progress
:meth:`~wx.lib.progressindicator.ProgressIndicator.Stop` Stop showing progress
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: ProgressIndicator(wx.Panel)
.. method:: __init__(self, \*args, \*\*kw)
.. method:: onTimer(self, evt)
.. method:: SetLabel(self, text)
Set the text displayed in the label.
.. method:: SetRange(self, maxval)
For determinante mode (non-pulse) set the max value that the gauge can
be set to. Defaults to 100.
.. method:: SetValue(self, value, label=None)
For determinante mode (non-pulse) update the progress indicator to the
given value. For example, if the job is 45% done then pass 45 to this
method (as long as the range is still set to 100.)
.. method:: Start(self, label=None)
Show (if necessary) and begin displaying progress
.. method:: Stop(self, clearLabel=False)
Stop showing progress
|