Update item attributes panel when mutation changes (#1644)

This commit is contained in:
blitzmann
2018-06-17 13:01:54 -04:00
parent 8f16fc5c1e
commit 15216453c9
3 changed files with 8 additions and 2 deletions

View File

@@ -84,7 +84,8 @@ class ItemParams(wx.Panel):
def RefreshValues(self, event):
self._fetchValues()
self.UpdateList()
event.Skip()
if event:
event.Skip()
def ToggleViewMode(self, event):
self.toggleView *= -1

View File

@@ -123,6 +123,11 @@ class ItemMutator(wx.Panel):
if self.timer:
self.timer.Stop()
self.timer = None
for x in self.Parent.Children:
if isinstance(x, ItemParams):
x.RefreshValues(None)
break
self.timer = wx.CallLater(1000, self.callLater)
def resetMutatedValues(self, evt):