-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
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 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.
Co-authored-by: John Wang <78456315+johnwangwyx@users.noreply.github.com>
Co-authored-by: John Wang <78456315+johnwangwyx@users.noreply.github.com>
Thank you!!! |
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().