-
Notifications
You must be signed in to change notification settings - Fork 30
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
Some simple improvements #80
base: master
Are you sure you want to change the base?
Conversation
An entry that takes only numbers or calculations and calculates the result of the calculation
Change the default hover-cursor from hand1 to hand2
Change the movement cursor from exchange to fleur
Change the default cursor to use the native link pointer on Mac and Windows
Add __getitem__, __setitem__, config and configure, docstring formatting
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
==========================================
- Coverage 89.51% 89.24% -0.27%
==========================================
Files 43 43
Lines 4026 4065 +39
==========================================
+ Hits 3604 3628 +24
- Misses 422 437 +15
Continue to review full report at Codecov.
|
Since Tk 8.6 supports png, I don't think it's actually necessary to use PIL. I hope no one uses Tk 8.5 these days. I know I forgot something very important but I can't remember what it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your commits, @rdbende ! Almost everything looks good, just a couple comments on the LinkLabel
changes. See also my commit on rdbende-improvements
branch.
And while we are here, shouldn't we replace the uses of |
assert frame.opened | ||
frame.close() | ||
self.window.update() | ||
assert not frame.opened |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are good reasons to use assertTrue
, assertFalse
, assertEquals
, and so on, so it's important that they are not changed. See also here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use Pytest as test runner, which prefers the assert
keyword, and logs usable output with it, but I see we're using Nose here, so I'll rewrite it.
from ttkwidgets.utilities import get_assets_directory | ||
|
||
assets_dir = Path(get_assets_directory()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the use of pathlib
, but why does it have to be a global variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I thought I might need it elsewhere, but it turns out I didn't.
No description provided.