Skip to content

Commit

Permalink
remove calls to QPoint.toTuple which is invalid in PyQt5 (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
kne42 authored and tlambert03 committed Jan 11, 2020
1 parent 0f2f8ef commit e2b90e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napari/_qt/qt_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def show_at(self, position='top', *, width_ratio=0.9):

# necessary for transparent round corners
self.resize(self.sizeHint())
self.setGeometry(*xy.toTuple(), max(width, 20), max(height, 20))
self.setGeometry(xy.x(), xy.y(), max(width, 20), max(height, 20))
self.show()

def keyPressEvent(self, event):
Expand Down

0 comments on commit e2b90e9

Please sign in to comment.