def open(self):
     if self.busy: return
     self.canvas_image = graphics.get_snapshot()
     if not settings.settings['fullscreen']:
         self.open_2()
         return
     graphics.main_window.set_fullscreen(False)
     pyglet.clock.schedule_once(self.open_2,0.5)
     self.busy = True
 def save(self):
     if self.busy: return
     
     self.canvas_image = graphics.get_snapshot()
     img = graphics.get_canvas()
     img = img.get_region(1,1,img.width-1,img.height-1)
     if not settings.settings['fullscreen']:
         self.save_2(0,img)
         return
     graphics.main_window.set_fullscreen(False)
     pyglet.clock.schedule_once(self.save_2,0.5,img)
     self.busy = True