def runScript(self,filename):
     """Run the specified example."""
     self.current = filename
     selected = os.path.join(self.dir,filename+'.py')
     GD.debug("Playing script %s" % selected)
     GD.gui.setcurfile(selected)
     fileMenu.play()
 def runScript(self,filename):
     """Run the specified script."""
     self.current = filename
     if self.dir:
         selected = os.path.join(self.dir,filename+'.py')
     else:
         selected = filename
     GD.debug("Playing script %s" % selected)
     GD.gui.setcurfile(selected)
     if self.autoplay:
         fileMenu.play()