def ShowMain(self): setGui(True) frame = Pinguino(None) app.SetTopWindow(frame) frame.__initPinguino__(None) frame.Show() if self.fc.IsRunning(): self.Raise()
def OnInit(self): if sys.platform == 'darwin': setGui(True) frame = Pinguino(None) frame.__initPinguino__(None) app.SetTopWindow(frame) frame.Show() else: splash = MySplashScreen() splash.Show() return True
print "Board: " + curBoard.name print "Proc.: " + curBoard.proc if options.filename == False: print "missing filename" sys.exit(1) filename = options.filename[0] fname, extension = os.path.splitext(filename) if extension != ".pde": print "bad file extension, it should be .pde" sys.exit(1) print "File : " + filename setGui(False) pobject = Pinguino(None) #Initialize vars pobject.rw = [] pobject.regobject = [] pobject.reservedword = [] pobject.libinstructions = [] pobject.setOSvariables() pobject.readlib(curBoard) print "preprocessing ..." retour = pobject.preprocess(fname, curBoard) if retour == "error": print "error while preprocessing " + filename sys.exit(1)