Do not flicker when switching graphs on Windows
This commit is contained in:
@@ -129,6 +129,8 @@ class GraphControlPanel(wx.Panel):
|
|||||||
self._setVectorDefaults()
|
self._setVectorDefaults()
|
||||||
|
|
||||||
def updateControls(self, layout=True):
|
def updateControls(self, layout=True):
|
||||||
|
if layout:
|
||||||
|
self.Freeze()
|
||||||
self._clearStoredValues()
|
self._clearStoredValues()
|
||||||
view = self.graphFrame.getView()
|
view = self.graphFrame.getView()
|
||||||
self.ySubSelection.Clear()
|
self.ySubSelection.Clear()
|
||||||
@@ -173,6 +175,7 @@ class GraphControlPanel(wx.Panel):
|
|||||||
if layout:
|
if layout:
|
||||||
self.graphFrame.Layout()
|
self.graphFrame.Layout()
|
||||||
self.graphFrame.UpdateWindowSize()
|
self.graphFrame.UpdateWindowSize()
|
||||||
|
self.Thaw()
|
||||||
|
|
||||||
def _updateInputs(self, storeInputs=True):
|
def _updateInputs(self, storeInputs=True):
|
||||||
if storeInputs:
|
if storeInputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user