def setDevice(d): global device if device == None: device = d pgeif.use_buffer() else: printf("cannot change device once pge has started\n")
def setDevice (d): global device if device == None: device = d if device == pyg_d: pygame.init () pgeif.use_buffer () else: printf ("cannot change device once pge has started\n")
def setDefaultDevice (): global device if device == None: device = pyg_d pgeif.use_buffer ()
def setDefaultDevice(): global device if device == None: device = pyg_d pgeif.use_buffer()