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

Geometric figure annotator #56

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Geometric figure annotator #56

wants to merge 30 commits into from

Conversation

nklimov23
Copy link
Contributor

No description provided.

@nklimov23 nklimov23 requested a review from vlad-nn September 5, 2024 00:03
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",
Copy link
Collaborator

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?

self.root.protocol("WM_DELETE_WINDOW", self.on_close)

# Set window icon
self.icon_image = ImageTk.PhotoImage(file="assets/logo.png")
Copy link
Collaborator

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:

  1. Include it into the wheel installation. For example, into assets subdir of root package install dir.
  2. Construct full path to this file using the path of the current source file as a bas

@@ -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"
Copy link
Collaborator

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"
Copy link
Collaborator

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

@nklimov23 nklimov23 requested a review from vlad-nn October 2, 2024 18:19
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.

2 participants