Fix bugs where scale/rotate will not update on Linux

This commit is contained in:
daid 2012-04-18 11:00:41 +02:00
parent 00ba00cefa
commit 4d10199e74

View file

@ -186,7 +186,7 @@ class previewPanel(wx.Panel):
self.toolbar2.AddControl(self.scaleReset)
self.scale = wx.TextCtrl(self.toolbar2, -1, profile.getProfileSetting('model_scale'), size=(21*2,21))
self.toolbar2.AddControl(self.scale)
self.Bind(wx.EVT_TEXT, self.OnScale, self.scale)
self.scale.Bind(wx.EVT_TEXT, self.OnScale)
self.toolbar2.AddSeparator()
@ -266,6 +266,7 @@ class previewPanel(wx.Panel):
def OnScaleReset(self, e):
self.scale.SetValue('1.0')
self.OnScale(None)
def OnScale(self, e):
profile.putProfileSetting('model_scale', self.scale.GetValue())
@ -289,6 +290,7 @@ class previewPanel(wx.Panel):
def OnRotateReset(self, e):
self.rotate.SetValue(0)
self.OnRotate(None)
def OnRotate(self, e):
profile.putProfileSetting('model_rotate_base', self.rotate.GetValue())