Пример #1
0
def setDevice(d):
    global device

    if device == None:
        device = d
        pgeif.use_buffer()
    else:
        printf("cannot change device once pge has started\n")
Пример #2
0
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")
Пример #3
0
def setDefaultDevice ():
    global device

    if device == None:
        device = pyg_d
        pgeif.use_buffer ()
Пример #4
0
def setDefaultDevice():
    global device

    if device == None:
        device = pyg_d
        pgeif.use_buffer()