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

delete all entry DateEntry when error ocur, and give it new value #49

Merged
merged 2 commits into from
Aug 11, 2021
Merged

Conversation

jongbatax
Copy link
Contributor

Delete all entry widget text when raise Error, and give it new value so the the calendar is show.

@@ -158,6 +158,8 @@ def on_date_ask(self):
except Exception as e:
print(e)
self.startdate = datetime.today()
self.entry.delete(0, len(self.entry.get()))
Copy link

@rdbende rdbende Aug 10, 2021

Choose a reason for hiding this comment

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

Would be simpler to just use end instead of len(self.entry.get())

@israel-dryer israel-dryer merged commit 8fe8b38 into israel-dryer:master Aug 11, 2021
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