mirror of
https://github.com/verigak/progress.git
synced 2025-12-08 19:33:24 +00:00
@@ -15,6 +15,9 @@
|
|||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from . import Progress
|
from . import Progress
|
||||||
from .helpers import WritelnMixin
|
from .helpers import WritelnMixin
|
||||||
|
|
||||||
@@ -61,7 +64,10 @@ class FillingCirclesBar(ChargingBar):
|
|||||||
|
|
||||||
|
|
||||||
class IncrementalBar(Bar):
|
class IncrementalBar(Bar):
|
||||||
phases = (' ', '▏', '▎', '▍', '▌', '▋', '▊', '▉', '█')
|
if sys.platform.startswith('win'):
|
||||||
|
phases = (u' ', u'▌', u'█')
|
||||||
|
else:
|
||||||
|
phases = (' ', '▏', '▎', '▍', '▌', '▋', '▊', '▉', '█')
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
nphases = len(self.phases)
|
nphases = len(self.phases)
|
||||||
|
|||||||
Reference in New Issue
Block a user