edgeWidth = calculateEdgeWidth(setting)
return 10.0 / edgeWidth
-def getSkeinPyPyProfileInformation():
+def getProfileInformation():
return {
'carve': {
'Add_Layer_Template_to_SVG': DEFSET,
def getReadRepository(repository):
"Read the configuration for this 'repository'"
- info = getSkeinPyPyProfileInformation()
+ info = getProfileInformation()
if not info.has_key(repository.name):
- print "Warning: Plugin: " + repository.name + " missing from SkeinPyPy info"
+ print "Warning: Plugin: " + repository.name + " missing from Cura info"
return repository
info = info[repository.name]
for p in repository.preferences:
name = safeConfigName(p.name)
if not info.has_key(name):
- print "Setting: " + repository.name + ":" + name + " missing from SkeinPyPy info"
+ print "Setting: " + repository.name + ":" + name + " missing from Cura info"
continue
if isinstance(info[name], types.FunctionType):
p.setValueToString(str(info[name](p)))
class FirstInfoPage(InfoPage):\r
def __init__(self, parent):\r
super(FirstInfoPage, self).__init__(parent, "First time run wizard")\r
- self.AddText('Welcome, and thanks for trying SkeinPyPy!')\r
+ self.AddText('Welcome, and thanks for trying Cura!')\r
self.AddSeperator()\r
self.AddText('This wizard will help you with the following steps:')\r
- self.AddText('* Configure SkeinPyPy for your machine')\r
+ self.AddText('* Configure Cura for your machine')\r
self.AddText('* Upgrade your firmware')\r
self.AddText('* Calibrate your machine')\r
#self.AddText('* Do your first print')\r
super(RepRapInfoPage, self).__init__(parent, "RepRap information")\r
self.AddText('Sorry, but this wizard will not help you with\nconfiguring and calibrating your RepRap.')\r
self.AddSeperator()\r
- self.AddText('You will have to manually install Marlin firmware\nand configure SkeinPyPy.')\r
+ self.AddText('You will have to manually install Marlin or Sprinter firmware\nand configure Cura.')\r
\r
class MachineSelectPage(InfoPage):\r
def __init__(self, parent):\r
self.AddHiddenSeperator()\r
self.AddText('The firmware shipping with new Ultimakers works, but upgrades\nhave been made to make better prints, and make calibration easier.')\r
self.AddHiddenSeperator()\r
- self.AddText('SkeinPyPy requires these new features and thus\nyour firmware will most likely need to be upgraded.\nYou will get the chance to do so now.')\r
+ self.AddText('Cura requires these new features and thus\nyour firmware will most likely need to be upgraded.\nYou will get the chance to do so now.')\r
upgradeButton, skipUpgradeButton = self.AddDualButton('Upgrade to Marlin firmware', 'Skip upgrade')\r
upgradeButton.Bind(wx.EVT_BUTTON, self.OnUpgradeClick)\r
skipUpgradeButton.Bind(wx.EVT_BUTTON, self.OnSkipClick)\r
from newui import configWizard
from newui import machineCom
from newui import profile
+from newui import printWindow
def main():
app = wx.App(False)
if profile.getPreference('wizardDone') == 'False':
if os.name == 'darwin':
- wx.MessageBox('The MacOS version of SkeinPyPy is experimental.\nThere are still UI/usability bugs. Check the issue list at:\nhttps://github.com/daid/SkeinPyPy/issues\nfor details.\nPlease report any extra issue you find.', 'MacOS Warning', wx.OK | wx.ICON_INFORMATION)
+ wx.MessageBox('The MacOS version of Cura is experimental.\nThere are still UI/usability bugs. Check the issue list at:\nhttps://github.com/daid/SkeinPyPy/issues\nfor details.\nPlease report any extra issue you find.', 'MacOS Warning', wx.OK | wx.ICON_INFORMATION)
configWizard.configWizard()
profile.putPreference("wizardDone", "True")
mainWindow()
class mainWindow(configBase.configWindowBase):
"Main user interface window"
def __init__(self):
- super(mainWindow, self).__init__(title='SkeinPyPy')
+ super(mainWindow, self).__init__(title='Cura')
wx.EVT_CLOSE(self, self.OnClose)
# load and slice buttons.
loadButton = wx.Button(self, -1, 'Load Model')
sliceButton = wx.Button(self, -1, 'Slice to GCode')
+ #printButton = wx.Button(self, -1, 'Print GCode')
self.Bind(wx.EVT_BUTTON, self.OnLoadModel, loadButton)
self.Bind(wx.EVT_BUTTON, self.OnSlice, sliceButton)
+ #self.Bind(wx.EVT_BUTTON, self.OnPrint, printButton)
#Also bind double clicking the 3D preview to load an STL file.
self.preview3d.glCanvas.Bind(wx.EVT_LEFT_DCLICK, self.OnLoadModel, self.preview3d.glCanvas)
sizer.AddGrowableCol(2)
sizer.AddGrowableRow(0)
sizer.Add(loadButton, (1,1), flag=wx.RIGHT, border=5)
- sizer.Add(sliceButton, (1,2))
+ sizer.Add(sliceButton, (1,2), flag=wx.RIGHT, border=5)
+ #sizer.Add(printButton, (1,3), flag=wx.RIGHT, border=5)
self.sizer = sizer
if self.filename != "None":
newSize.IncBy(0, spp.GetSize().GetHeight())
self.SetSize(newSize)
self.progressPanelList.append(spp)
+
+ def OnPrint(self, e):
+ printWindow.printWindow()
def OnExpertOpen(self, e):
acw = advancedConfig.advancedConfigWindow()
return 'extrusion'
def getProfileName(craftTypeName):
- return 'SkeinPyPy profile:' + craftTypeName
+ return 'Cura profile:' + craftTypeName
def addListsToCraftTypeRepository(fileNameHelp, repository):
#print('addListsToCraftTypeRepository:', fileNameHelp, repository)
This page is in the table of contents.
==Overview==
===Introduction===
-SkeinPyPy is a GPL tool chain to forge a gcode skein for a model. Based on Skeinforge.
+Cura is a GPL tool chain to forge a gcode skein for a model. Based on Skeinforge.
The slicing code is the same as Skeinforge. But the UI has been revamped to be... sane.