Skip to content

Commit 0ca2f41

Browse files
vallsvpayno
authored andcommitted
Fix parent to avoid setGeometry warnings on Qt5
1 parent 5693b97 commit 0ca2f41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

silx/gui/plot/PlotWindow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
__authors__ = ["V.A. Sole", "T. Vincent"]
3434
__license__ = "MIT"
35-
__date__ = "05/10/2016"
35+
__date__ = "10/10/2016"
3636

3737
import collections
3838
import logging
@@ -167,11 +167,11 @@ def __init__(self, parent=None, backend=None,
167167
self.colormapAction.setVisible(colormap)
168168

169169
self.keepDataAspectRatioButton = PlotToolButtons.AspectToolButton(
170-
parent=None, plot=self)
170+
parent=self, plot=self)
171171
self.keepDataAspectRatioButton.setVisible(aspectRatio)
172172

173173
self.yAxisInvertedButton = PlotToolButtons.YAxisOriginToolButton(
174-
parent=None, plot=self)
174+
parent=self, plot=self)
175175
self.yAxisInvertedButton.setVisible(yInverted)
176176

177177
self.group.addAction(self.roiAction)

0 commit comments

Comments
 (0)