from __future__ import division
__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
-import platform
import wx, wx.lib.stattext, types
from wx.lib.agw import floatspin
pass
else:
self.ctrl.SetValue(value)
-
-#Settings notify works as a validator, but instead of validating anything, it calls another function, which can use the value.
-# A bit hacky, bit it works.
-class settingNotify(object):
- def __init__(self, setting, func):
- self.setting = setting
- self.setting.validators.append(self)
- self.func = func
-
- def validate(self):
- self.func()
- return validators.SUCCESS, ''
-
from Cura.util import profile
from Cura.util import version
from Cura.util import meshLoader
-from Cura.util import resources
class mainWindow(wx.Frame):
def __init__(self):
ret = base64.b64encode(zlib.compress(ret, 9))
return ret
-def getGlobalPreferencesString():
+def getPreferencesString():
p = []
global settingsList
for set in settingsList:
'processor': platform.processor(),
'machine': platform.machine(),
'platform': platform.platform(),
- 'profile': profile.getGlobalProfileString(),
- 'preferences': profile.getGlobalPreferencesString(),
+ 'profile': profile.getProfileString(),
+ 'preferences': profile.getPreferencesString(),
'modelhash': self._modelHash,
'version': version.getVersion(),
}