Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the progress bar #33

Closed
o355 opened this issue Oct 2, 2017 · 28 comments
Closed

Fixing the progress bar #33

o355 opened this issue Oct 2, 2017 · 28 comments

Comments

@o355
Copy link
Owner

o355 commented Oct 2, 2017

Presently the progress bar in PyWeather is a complete mess. I've been looking around for a library that can support the variability that comes with booting PyWeather (some people might have 15 or 25 steps to boot).

I found a cool library called Halo on /r/coolgithubprojects, but it lacks Windows support at the moment.

@o355 o355 added this to the 0.6.3 beta milestone Oct 2, 2017
@o355
Copy link
Owner Author

o355 commented Oct 7, 2017

The library halo (https://github.com/ManrajGrover/halo) will be used. It doesn't have full Windows support, but works well enough for what has to be done.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 7, 2017 via email

@o355
Copy link
Owner Author

o355 commented Oct 8, 2017

The halo library works well for my purposes on Windows. I did a test run on Win 10 and felt as if it worked and was easy to implement.

Of course I'm going to do further testing on OS X and Linux when I can.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 8, 2017 via email

@o355 o355 added the halted label Oct 17, 2017
@o355
Copy link
Owner Author

o355 commented Oct 17, 2017

Enhancement suspended temporarily, issues with the library were encountered.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 18, 2017 via email

@o355
Copy link
Owner Author

o355 commented Oct 19, 2017

I've contacted the developers on GitHub, no response for 3 days.

I'm going to give them a week and then I'll give you permission to make the custom module, since I like having a fancy spinner.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 19, 2017 via email

@o355
Copy link
Owner Author

o355 commented Oct 21, 2017

Development is now unsuspended. I'm going to investigate potential methods about using Halo, and potentially pushing back the feature to 0.6.4 beta since it may require monumental codebase changes.

@creepersbane, I appreciate your willingness to make a custom library! If you'd like to make one that'd be great, just to have a backup plan. If you can, try to get your package on PyPi, and I'll email you with more details.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 21, 2017 via email

@o355
Copy link
Owner Author

o355 commented Oct 21, 2017

Awesome! I'll try it out when I get the chance.

@o355 o355 mentioned this issue Oct 22, 2017
@o355
Copy link
Owner Author

o355 commented Oct 23, 2017

Update: Two developers from their side have claimed that this is an odd issue, one of which mentioned that the code worked fine on their system. I'm going to investigate into more detail why this is occurring.

I'm starting to think it's an issue with the command prompt on my machine, or that it's good 'ol Windows 10.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 23, 2017

Ok then.

Status on the custom library:
NOTE: I have not uploaded the code to Github yet. Maybe tonight :)

Spinner text colors: 100% (use setTextColor(color) to set the color)
Spinner frames color: 90% (use setSpinnerColor(color) to set the color)
Spinner fail function: 0% (working on that now)
Spinner succeed function: 0% (also working on that now)
Python 3 support: 100% (send me the exception you get when you try to use the module)

@o355
Copy link
Owner Author

o355 commented Oct 23, 2017

Alright. I'm considering using your library instead, but just make sure you get it up on PyPi so that users can download it with pip install.

@BenjaminUrquhart
Copy link
Contributor

Ok

@o355
Copy link
Owner Author

o355 commented Oct 25, 2017

Hey @creepersbane, I've decided to bite the bullet and stick with Halo for now.

Halo is an official library which has been starred thousands of times, and even though I have to add 500ish Style.BRIGHT statements, I should of done that when I first did color in PyWeather.

Thank you for your willingness to make a library for PyWeather, nonetheless.

Development of the spinner has resumed.

@o355 o355 removed the halted label Oct 25, 2017
@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 25, 2017 via email

@BenjaminUrquhart
Copy link
Contributor

FYI, the text dimming with halo happens to me as well (Ubuntu 14.0.4 xenial)

@o355
Copy link
Owner Author

o355 commented Oct 25, 2017

I sent an email that should show up here...well thanks GitHub

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Oct 25, 2017 via email

@o355
Copy link
Owner Author

o355 commented Oct 26, 2017

Cool. If you wouldn't mind, it'd be nice if you could subscribe to the weekly mailing letter for PyWeather's latest news. I don't want Mailerlite kicking me for using their service unnecessarily.

Link is in the readme.

@BenjaminUrquhart
Copy link
Contributor

Eh, OK?

@o355
Copy link
Owner Author

o355 commented Oct 31, 2017

Progress bar work is now almost done! I'll now be looking over code to see if all the necessary spinners are implemented, and most colors are brightened up.

I'm leaving alone color on the block of code for detailed yesterday's weather as to prevent any merge errors.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Nov 3, 2017 via email

@o355
Copy link
Owner Author

o355 commented Nov 9, 2017

Done, I actually can't believe the code for 0.6.3 beta is done butttt it's QA time

@o355 o355 closed this as completed Nov 9, 2017
@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Nov 25, 2017 via email

@o355
Copy link
Owner Author

o355 commented Nov 26, 2017

It's a good idea but the text would either flash on screen for 50ms or I'd have to intentionally put a sleep for maybe 300ms to show the spinner.

@BenjaminUrquhart
Copy link
Contributor

BenjaminUrquhart commented Nov 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants