Esempio n. 1
0
def main(splash):
    #app = wx.App(False)
    if profile.getPreference('machine_type') == 'unknown':
        if platform.system() == "Darwin":
            #Check if we need to copy our examples
            exampleFile = os.path.expanduser(
                '~/CuraExamples/UltimakerRobot_support.stl')
            if not os.path.isfile(exampleFile):
                try:
                    os.makedirs(os.path.dirname(exampleFile))
                except:
                    pass
                for filename in glob.glob(
                        os.path.normpath(
                            os.path.join(
                                os.path.dirname(os.path.abspath(__file__)),
                                '..', 'example', '*.*'))):
                    shutil.copy(
                        filename,
                        os.path.join(os.path.dirname(exampleFile),
                                     os.path.basename(filename)))
                profile.putPreference('lastFile', exampleFile)
        splash.Show(False)
        configWizard.configWizard()
    if profile.getPreference('startMode') == 'Simple':
        simpleMode.simpleModeWindow()
    else:
        mainWindow()
Esempio n. 2
0
def main():
	#app = wx.App(False)
	if profile.getPreference('machine_type') == 'unknown':
		configWizard.configWizard()
	if profile.getPreference('startMode') == 'Simple':
		simpleMode.simpleModeWindow()
	else:
		mainWindow()
Esempio n. 3
0
def main():
    # app = wx.App(False)
    if profile.getPreference("machine_type") == "unknown":
        configWizard.configWizard()
    if profile.getPreference("startMode") == "Simple":
        simpleMode.simpleModeWindow()
    else:
        mainWindow()
Esempio n. 4
0
def main():
    #app = wx.App(False)
    if profile.getPreference('machine_type') == 'unknown':
        configWizard.configWizard()
    if profile.getPreference('startMode') == 'Simple':
        simpleMode.simpleModeWindow()
    else:
        mainWindow()
Esempio n. 5
0
def main():
	#app = wx.App(False)
	if profile.getPreference('wizardDone') == 'False':
		configWizard.configWizard()
		profile.putPreference("wizardDone", "True")
	if profile.getPreference('startMode') == 'Simple':
		simpleMode.simpleModeWindow()
	else:
		mainWindow()
Esempio n. 6
0
def main():
    #app = wx.App(False)
    if profile.getPreference('wizardDone') == 'False':
        configWizard.configWizard()
        profile.putPreference("wizardDone", "True")
    if profile.getPreference('startMode') == 'Simple':
        simpleMode.simpleModeWindow()
    else:
        mainWindow()
Esempio n. 7
0
def main():
    app = wx.App(False)
    if profile.getPreference("wizardDone") == "False":
        configWizard.configWizard()
        profile.putPreference("wizardDone", "True")
    if profile.getPreference("startMode") == "Simple":
        simpleMode.simpleModeWindow()
    else:
        mainWindow()
    app.MainLoop()
Esempio n. 8
0
def main(splash):
	#app = wx.App(False)
	if profile.getPreference('machine_type') == 'unknown':
		if platform.system() == "Darwin":
			#Check if we need to copy our examples
			exampleFile = os.path.expanduser('~/CuraExamples/UltimakerRobot_support.stl')
			if not os.path.isfile(exampleFile):
				try:
					os.makedirs(os.path.dirname(exampleFile))
				except:
					pass
				for filename in glob.glob(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'example', '*.*'))):
					shutil.copy(filename, os.path.join(os.path.dirname(exampleFile), os.path.basename(filename)))
				profile.putPreference('lastFile', exampleFile)
		splash.Show(False)
		configWizard.configWizard()
	if profile.getPreference('startMode') == 'Simple':
		simpleMode.simpleModeWindow()
	else:
		mainWindow()
Esempio n. 9
0
 def OnSimpleSwitch(self, e):
     profile.putPreference("startMode", "Simple")
     simpleMode.simpleModeWindow()
     self.Close()
Esempio n. 10
0
 def OnSimpleSwitch(self, e):
     profile.putPreference('startMode', 'Simple')
     simpleMode.simpleModeWindow()
     self.Close()
Esempio n. 11
0
	def OnSimpleSwitch(self, e):
		profile.putPreference('startMode', 'Simple')
		simpleMode.simpleModeWindow()
		self.Close()