Moved profile read/write functions to newui. Better seperation of Skeinforge and NewUI. Moved all the defaults to profile.py, instead of all over the place.

This commit is contained in:
Daid committed 2012-03-17 12:03:38 +01:00
1 parent ff7782fa14
commit 2fcd59bfb6
8 files changed
+211 -139

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
from __future__ import absolute_import
import __init__
from fabmetheus_utilities import settings
from newui import profile
SUCCESS = 0
WARNING = 1
@@ -68,7 +68,7 @@ class wallThicknessValidator():
def validate(self):
try:
wallThickness = float(self.setting.GetValue())
nozzleSize = float(settings.getProfileSetting('nozzle_size'))
nozzleSize = float(profile.getProfileSetting('nozzle_size'))
if wallThickness <= nozzleSize * 0.5:
return ERROR, 'Trying to print walls thinner then the half of your nozzle size, this will not produce anything usable'
if wallThickness <= nozzleSize * 0.85: