-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #1, and created wheel and source files.
- Loading branch information
Bill Chen
committed
Mar 8, 2018
1 parent
f94cc1c
commit 3467e15
Showing
14 changed files
with
282 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,13 +60,13 @@ prog.end() | |
Output: | ||
|
||
``` | ||
Initial State: | ||
Initial State: | ||
:-) Progress: 0% -------------------------------------------------- OK! | ||
When progress is 50: | ||
When progress is 50: | ||
:-) Progress: 50% #########################------------------------- OK! | ||
Final State: | ||
Final State: | ||
:-) Progress: 100% ################################################## OK! | ||
``` | ||
|
||
|
@@ -89,13 +89,13 @@ You can also add more options to make it look good. | |
Adding options `complete_symbol="█", not_complete_symbol="-"` will change the original output to: | ||
|
||
``` | ||
Initial State: | ||
Initial State: | ||
:-) Progress: 0% -------------------------------------------------- OK! | ||
When progress is 50: | ||
When progress is 50: | ||
:-) Progress: 50% █████████████████████████------------------------- OK! | ||
Final State: | ||
Final State: | ||
:-) Progress: 100% ██████████████████████████████████████████████████ OK! | ||
``` | ||
|
||
|
@@ -164,13 +164,13 @@ prog.end() | |
Output: | ||
|
||
``` | ||
Initial State: | ||
Initial State: | ||
:-) 0/56 OK! | ||
When half done: | ||
When half done: | ||
:-) 28/56 OK! | ||
Final State: | ||
Final State: | ||
:-) 56/56 OK! | ||
``` | ||
|
||
|
@@ -294,67 +294,102 @@ Initial status to show on the indicator. | |
|
||
#### set_stat() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: current | ||
|
||
Set the current progress. | ||
|
||
#### stat() | ||
|
||
Available on: PyProg 1.1.0-0 ~ | ||
Params: current | ||
Note: This function is currently only available on the ProgressBar. Support for ProgressIndicatorFraction will come soon. | ||
|
||
Set the current progress and update the progress bar. | ||
|
||
#### progress() | ||
|
||
Available on: PyProg 1.1.0-0 ~ | ||
Params: progress | ||
Note: This function is currently only available on the ProgressBar. Support for ProgressIndicatorFraction will come soon. | ||
|
||
Increase the progress by the given amount. | ||
|
||
#### update() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: (none) | ||
|
||
Update the progress bar so that it shows the current progress.<br/> | ||
Note: Also call this to initiate the bar. | ||
|
||
#### end() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: (none) | ||
|
||
End the progress bar. | ||
|
||
#### end_m() | ||
|
||
Available on: PyProg 1.1.0-0 ~ | ||
Params: msg | ||
Note: This function is currently only available on the ProgressBar. Support for ProgressIndicatorFraction will come soon. | ||
|
||
End the progress bar with a message. | ||
|
||
#### set_prefix() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: prefix | ||
|
||
Set the prefix | ||
|
||
#### set_suffix() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: suffix | ||
|
||
Set the suffix | ||
|
||
#### set_total() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: total | ||
|
||
Set the total | ||
|
||
#### set_bar_length() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: bar_length | ||
|
||
Set the length of the bar | ||
|
||
#### set_decimals() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: decimals | ||
|
||
Set the number of decimals for the percent | ||
|
||
#### set_symbols() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: symbols | ||
|
||
Set the complete symbol and the not complete symbol. `symbols` has to be a tuple: (complete symbol, not complete symbol) | ||
|
||
#### set_progress_loc() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: progress_loc | ||
|
||
Set the progress explanation (prefix) and the progress text location. See [the progress_loc parameter](#user-content-progress_loc-default-is-0 "progress_loc") section for the possible values. | ||
|
||
#### set_progress_explain() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: progress_explain | ||
|
||
Set the progress explanation (prefix). | ||
|
@@ -365,12 +400,14 @@ Examples:<br/> | |
|
||
#### set_wrap_bar_text() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: prefix, suffix | ||
|
||
Set the wrap bar text (the prefix and the suffix of the bar). | ||
|
||
#### set_progress_format() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: progress_format | ||
|
||
Set the format for the progress text. PyProg replaces special characters with actual values. Here is a list of special characters: | ||
|
@@ -382,37 +419,43 @@ Set the format for the progress text. PyProg replaces special characters with ac | |
|
||
#### set_stat() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: current | ||
|
||
Set the current progress. | ||
|
||
#### update() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: (none) | ||
|
||
Update the progress indicator so that it shows the current progress. | ||
Note: Also call this to initiate the indicator. | ||
|
||
#### end() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: (none) | ||
|
||
End the progress indicator. | ||
|
||
#### set_prefix() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: prefix | ||
|
||
Set the prefix | ||
|
||
#### set_suffix() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: suffix | ||
|
||
Set the suffix | ||
|
||
#### set_total() | ||
|
||
Available on: PyProg 1.0.0 ~ | ||
Params: total | ||
|
||
Set the total | ||
|
@@ -422,5 +465,3 @@ Set the total | |
If you want to support me, please contact me at [email protected]. | ||
|
||
My website is at [http://www.WhatsYourIdea.com/](http://www.WhatsYourIdea.com/ "Website") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.