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

[FIX] Nomogram on PyQt4 #2763

Merged
merged 1 commit into from
Nov 15, 2017
Merged

[FIX] Nomogram on PyQt4 #2763

merged 1 commit into from
Nov 15, 2017

Conversation

kernc
Copy link
Contributor

@kernc kernc commented Nov 10, 2017

Issue
  • Nomogram tooltips crashing on PyQt4.
Description of changes

Fixed.

Includes
  • Code changes
  • Tests
  • Documentation

@kernc kernc added this to the 3.8 milestone Nov 10, 2017
@markotoplak
Copy link
Member

markotoplak commented Nov 10, 2017

I had to add () to make Nomograms work on Qt4:

avail = QDesktopWidget().availableGeometry(self)

@codecov-io
Copy link

codecov-io commented Nov 10, 2017

Codecov Report

Merging #2763 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2763      +/-   ##
==========================================
+ Coverage   76.06%   76.07%   +<.01%     
==========================================
  Files         338      338              
  Lines       59699    59703       +4     
==========================================
+ Hits        45413    45421       +8     
+ Misses      14286    14282       -4

@markotoplak markotoplak modified the milestones: 3.8, 3.7.1 Nov 10, 2017
Copy link
Member

@markotoplak markotoplak left a comment

Choose a reason for hiding this comment

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

Naive Bayes and data set selection saving work for me.

It would be nice to have these in separate PR. Please also separate row height. Also, someone should test row height on retina (@astaric , could you?)

@@ -50,7 +51,7 @@ def show(self, pos, text, change_y=True):
self.adjustSize()

x, y = pos.x(), (pos.y() + 15 if change_y else self.y())
avail = QApplication.focusWindow().screen().availableGeometry()
avail = QDesktopWidget.availableGeometry(self)
Copy link
Member

Choose a reason for hiding this comment

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

avail = QDesktopWidget().availableGeometry(self)

@kernc
Copy link
Contributor Author

kernc commented Nov 10, 2017

It would be nice to have these in separate PR. Please also separate row height.

Neither. If you insist, feel free to adjust it as you will.

@markotoplak markotoplak changed the title [FIX]: Datasets and Nomogram [FIX]: Nomogram Nov 10, 2017
@markotoplak markotoplak changed the title [FIX]: Nomogram [FIX] Nomogram on PyQt4 Nov 10, 2017
@astaric
Copy link
Member

astaric commented Nov 13, 2017

Colud we have a test that (at least) runs this code on?

@markotoplak markotoplak merged commit 0e8d2a4 into biolab:master Nov 15, 2017
nikicc pushed a commit to nikicc/orange3 that referenced this pull request Nov 17, 2017
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.

4 participants