Closed roomrys closed 3 months ago
The recent updates to the sleap/gui/learning/dialog.py
file involve reorganization of imports and a key enhancement in the adjust_initial_size
method. By switching to using QtGui.QGuiApplication.primaryScreen().availableGeometry()
, the adjustments boost accuracy in window size handling, especially in multi-monitor environments. These changes aim to improve code readability and application responsiveness without altering any public entity declarations.
Files | Change Summary |
---|---|
sleap/gui/learning/dialog.py |
Reorganized imports, removed unused atexit module, and enhanced adjust_initial_size for better screen size handling. |
In a world of screens so wide,
A rabbit hops with joyful stride.
Adjustments made to fit just right,
Now windows shine in morning light!
With every change, we bounce and play,
Hooray for code, hip-hip-hooray! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 74.49%. Comparing base (
7ed1229
) to head (7e472ee
). Report is 33 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
When we migrate to PySide6 in a downstream branch, we will run into the error:
when attempting to open the Training Dialog.
From Changes to QWidget:
Fortunately, we only use
QDesktopWidget
in one place - and it is an easy replacement.Types of changes
Does this address any currently open issues?
1841
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
New Features
Refactor