-
Notifications
You must be signed in to change notification settings - Fork 0
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
Geometric figure annotator #56
base: main
Are you sure you want to change the base?
Conversation
…ools into zone-annotator
degirum_tools/__init__.py
Outdated
subparser = subparsers.add_parser( | ||
"line_annotator", | ||
description="Launch interactive utility for geometric figure annotation in images", | ||
help="launch interactive utility for geometric figure annotation in images", |
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.
Description and help strings for all three subparsers are the same - is it intent?
degirum_tools/figure_annotator.py
Outdated
self.root.protocol("WM_DELETE_WINDOW", self.on_close) | ||
|
||
# Set window icon | ||
self.icon_image = ImageTk.PhotoImage(file="assets/logo.png") |
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.
How this file will appear in wheel installation?
If you really need it, you do this:
- Include it into the wheel installation. For example, into assets subdir of root package install dir.
- Construct full path to this file using the path of the current source file as a bas
degirum_tools/figure_annotator.py
Outdated
@@ -483,7 +484,9 @@ def __init__( | |||
self.root.protocol("WM_DELETE_WINDOW", self.on_close) | |||
|
|||
# Set window icon | |||
self.icon_image = ImageTk.PhotoImage(file="assets/logo.png") | |||
self.icon_image = ImageTk.PhotoImage( | |||
file=str(Path(__file__).parent.parent) + "/assets/logo.png" |
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.
It looks like .parent.parent
should be just .parent
. Otherwise, I get this error:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\ProgramData\\miniconda3\\Lib\\site-packages\\assets\\logo.png'
pyproject.toml
Outdated
@@ -1,5 +1,5 @@ | |||
[tool.mypy] | |||
files = "degirum_tools,test" | |||
files = "degirum_tools,test,assets" |
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.
You added it to wrong place. This is the list of files to be analyzed by mypy
No description provided.