X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/375e3718e8a8bba623acaa6ad3418e09524d2eb7..d1b736b7968ceea4233f3fceecdb01173f68a9a3:/wxPython/wx/tools/XRCed/params.py?ds=inline diff --git a/wxPython/wx/tools/XRCed/params.py b/wxPython/wx/tools/XRCed/params.py index 769f6d8f48..fd7601985c 100644 --- a/wxPython/wx/tools/XRCed/params.py +++ b/wxPython/wx/tools/XRCed/params.py @@ -263,7 +263,7 @@ class ParamFont(PPanel): PPanel.OnChange(self, evt) self.textModified = True def _defaultValue(self): - return [`g._sysFont.GetPointSize()`, 'default', 'normal', 'normal', '0', '', ''] + return [`g.sysFont().GetPointSize()`, 'default', 'normal', 'normal', '0', '', ''] def GetValue(self): if self.textModified: # text has newer value try: @@ -287,7 +287,7 @@ class ParamFont(PPanel): self.value = self._defaultValue() # Make initial font # Default values - size = g._sysFont.GetPointSize() + size = g.sysFont().GetPointSize() family = wx.DEFAULT style = weight = wx.NORMAL underlined = 0 @@ -397,9 +397,11 @@ class ParamUnit(PPanel): def GetValue(self): return self.text.GetValue() def SetValue(self, value): + self.freeze = True if not value: value = '0' self.text.SetValue(value) self.Change(0) + self.freeze = False def Change(self, x): self.freeze = True # Check if we are working with dialog units