Skip to content

Commit

Permalink
Added Qt Console support
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill13579 committed Feb 4, 2018
1 parent 0dd0dd6 commit 65c2590
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PyProg is an Open-Source library for creating progress indicators (e.g. progress

# Compatibility

PyProg is compatible with both Python 3 and Python 2.
PyProg is compatible with both Python 3 and Python 2, and will also work on Qt Console.

# Getting Started

Expand Down
6 changes: 3 additions & 3 deletions build/lib/pyprog/ProgressBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def __init__(self, prefix, suffix, total=100, bar_length=50, initial=0, decimals
self.wrap_bar_prefix = wrap_bar_prefix
self.wrap_bar_suffix = wrap_bar_suffix

def __print(self, data, end="\n"):
sys.stdout.write(data + end)
def __print(self, data, start="", end=""):
sys.stdout.write(start + data + end)

def set_prefix(self, prefix):
'''
Expand Down Expand Up @@ -159,7 +159,7 @@ def update(self):
final = final[:bar_cut_from] + progress_str + final[bar_cut_to:]
final = final + self.progress_explain
final = self.p + final + self.s
self.__print(final, end="\r")
self.__print(final, start="\r")

def end(self):
'''
Expand Down
6 changes: 3 additions & 3 deletions build/lib/pyprog/ProgressIndicatorFraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def __init__(self, prefix, suffix, total, initial=0):
self.length = total
self.current_stat = initial

def __print(self, data, end="\n"):
sys.stdout.write(data + end)
def __print(self, data, start="", end=""):
sys.stdout.write(start + data + end)

def set_prefix(self, prefix):
'''
Expand Down Expand Up @@ -42,7 +42,7 @@ def update(self):
'''
final = str(self.current_stat) + "/" + str(self.length)
final = self.p + final + self.s
self.__print(final, end="\r")
self.__print(final, start="\r")

def end(self):
'''
Expand Down
Binary file removed dist/pyprog-1.0.1-py2.py3-none-any.whl
Binary file not shown.
Binary file removed dist/pyprog-1.0.1.tar.gz
Binary file not shown.
Binary file added dist/pyprog-1.0.2-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/pyprog-1.0.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions pyprog.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Metadata-Version: 1.0
Name: pyprog
Version: 1.0.1
Summary: A library for creating customizable progress indicators.
Version: 1.0.2
Summary: A library for creating super customizable progress indicators.
Home-page: https://github.com/Bill13579/pyprog
Author: Bill Kudo
Author-email: bluesky42624@gmail.com
Expand Down
6 changes: 3 additions & 3 deletions pyprog/ProgressBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def __init__(self, prefix, suffix, total=100, bar_length=50, initial=0, decimals
self.wrap_bar_prefix = wrap_bar_prefix
self.wrap_bar_suffix = wrap_bar_suffix

def __print(self, data, end="\n"):
sys.stdout.write(data + end)
def __print(self, data, start="", end=""):
sys.stdout.write(start + data + end)

def set_prefix(self, prefix):
'''
Expand Down Expand Up @@ -159,7 +159,7 @@ def update(self):
final = final[:bar_cut_from] + progress_str + final[bar_cut_to:]
final = final + self.progress_explain
final = self.p + final + self.s
self.__print(final, end="\r")
self.__print(final, start="\r")

def end(self):
'''
Expand Down
6 changes: 3 additions & 3 deletions pyprog/ProgressIndicatorFraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def __init__(self, prefix, suffix, total, initial=0):
self.length = total
self.current_stat = initial

def __print(self, data, end="\n"):
sys.stdout.write(data + end)
def __print(self, data, start="", end=""):
sys.stdout.write(start + data + end)

def set_prefix(self, prefix):
'''
Expand Down Expand Up @@ -42,7 +42,7 @@ def update(self):
'''
final = str(self.current_stat) + "/" + str(self.length)
final = self.p + final + self.s
self.__print(final, end="\r")
self.__print(final, start="\r")

def end(self):
'''
Expand Down
Binary file modified pyprog/__pycache__/ProgressBar.cpython-36.pyc
Binary file not shown.
Binary file modified pyprog/__pycache__/ProgressIndicatorFraction.cpython-36.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

setup(
name = 'pyprog',
version = '1.0.1',
version = '1.0.2',
packages = find_packages(),
description = ('A library for creating customizable progress indicators.'),
description = ('A library for creating super customizable progress indicators.'),
long_description = long_description,
author = 'Bill Kudo',
author_email = 'bluesky42624@gmail.com',
Expand Down

0 comments on commit 65c2590

Please sign in to comment.