from gui import splashScreen
splashScreen.showSplash(mainWindowRunCallback)
-def mainWindowRunCallback():
+def mainWindowRunCallback(splash):
from gui import mainWindow
- mainWindow.main()
+ mainWindow.main(splash)
if __name__ == '__main__':
main()
from util import sliceRun
from util import meshLoader
-def main():
+def main(splash):
#app = wx.App(False)
if profile.getPreference('machine_type') == 'unknown':
if platform.system() == "Darwin":
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()
wx.CallAfter(self.DoCallback)
def DoCallback(self):
- self.callback()
+ self.callback(self)
self.Destroy()
def showSplash(callback):
splashScreen(callback)
app.MainLoop()
-def testCallback():
+def testCallback(splashscreen):
print "Callback!"
import time
time.sleep(2)