-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Customizable plot: no need for QApplication at import #4941
Customizable plot: no need for QApplication at import #4941
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4941 +/- ##
==========================================
- Coverage 84.24% 84.22% -0.03%
==========================================
Files 283 278 -5
Lines 57873 57043 -830
==========================================
- Hits 48756 48045 -711
+ Misses 9117 8998 -119 |
47a98f4
to
f276f78
Compare
To set Updater there had to be an active QApplication when Updater was imported, because default font settings were set as class attributes. This led to some segfaults in tests, which also created a QApplication instance. Default font properties were moved to the __init__ of CommonParameterSetter. Also, parameter setters are now encapsulated by corresponding graphs and not mixed into them.
f276f78
to
8d587bd
Compare
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.
LGTM, only appveyor is complaining.
@@ -273,6 +231,8 @@ def update_axis(axis, **settings): | |||
} | |||
} | |||
|
|||
self.initial_settings = {} |
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 can use
initial_settings: Dict[str, Dict[str, SettingsType]] = NotImplemented
if you want to keep the old functionality, but I'm fine with any solution.
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.
Thanks!
I do not think that Appveyor complaints are connected with this PR. It also crashes similarly in unrelated PRs, see for example https://ci.appveyor.com/project/biolab/orange3-75xll/builds/34706479. |
Appveyor is no more. |
Issue
Fixes #4934. To set Updater there had to be an active QApplication when Updater was imported, because default font settings were set as class attributes. This led to some segfaults in tests, which also created a QApplication instance.
Description of changes
Default font properties were moved to the
__init__
of CommonParameterSetter. Also, parameter setters are now encapsulated by corresponding graphs and not mixed into them.Includes