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

Add windows TimePicker Widget #620

Merged
merged 7 commits into from
Apr 25, 2020
Merged

Add windows TimePicker Widget #620

merged 7 commits into from
Apr 25, 2020

Conversation

PythonicAccountant
Copy link
Contributor

This PR implements a time picking widget on Windows and related tests.

Below is the TimePicker widget in action with 11:15 AM set as the max_time and 11:00 AM set as the min_time. Also in action is the on_change automatically updated the toga label.
timepicker

Overall, pretty similar in concept to the DatePicker widget with the exception of the min_time and max_time implementation not being strictly native, but it works!

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@PythonicAccountant
Copy link
Contributor Author

Hmm, I'm not quite sure how to proceed. The tests are failing due to a few microseconds probably due to latency as they pass perfectly on my PC. @freakboy3742 Appreciate any thoughts/advice.

Thanks!

@PythonicAccountant
Copy link
Contributor Author

Removed microseconds when initial = None since I doubt anyone would care what the microseconds are on the default value.

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sincerely apologize for the delay in reviewing this. It looks like a great addition - thanks!

@freakboy3742 freakboy3742 merged commit c940d61 into beeware:master Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants