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

WIndow Orientation #6

Merged
merged 10 commits into from
Oct 26, 2024
Merged

WIndow Orientation #6

merged 10 commits into from
Oct 26, 2024

Conversation

DCRepublic
Copy link
Contributor

Started by centering the main window+(offset) with the screen. All the side windows will appear justified to the main window. Any other popups will appear in the middle of the screen.

The next step would be to take into account if the main window moves(this current fix does not do so). There are ways in Tkinter to get a window's current position, but we would have to pass the parent window to the child upon creation to call Toplevel..winfo_x() and .winfo_y().

Copy link
Owner

@johnwangwyx johnwangwyx left a comment

Choose a reason for hiding this comment

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

It seems like at least on Windows, calling the getScreenSize() before the creation of add_tag_window will cause the window to be hidden behind by the main window.
Would you mind calling this function at the start of open_add_tag_window()?

Other than that it is great! Thank you for making this change and follow the best practices! It is nice to utilize the utils.py to provide the getScreenSize() function.

cmdcompass/gui/command_tag_operation.py Show resolved Hide resolved
cmdcompass/gui/command_tag_operation.py Outdated Show resolved Hide resolved
DCRepublic and others added 2 commits October 22, 2024 10:23
Co-authored-by: John Wang <78456315+johnwangwyx@users.noreply.github.com>
Co-authored-by: John Wang <78456315+johnwangwyx@users.noreply.github.com>
@johnwangwyx
Copy link
Owner

Thank you!!!

@johnwangwyx johnwangwyx merged commit cb6fe07 into johnwangwyx:main Oct 26, 2024
6 checks passed
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