Пример #1
0
def start():
    while True:
        print "start"
        count = 1
        learnerarray = []
        for i in range(0,5):
            learnerarray.append(LTSBackend(count).getData())
            count = count + 1

        count = 1
        for i in learnerarray:
            Gui.setrow(win,i,count)
            count = count + 1
        sleep(10)
Пример #2
0
'''
VVVVV add an image to the grid(<window>, <row>, <column>, <path to image>, <Resize image(default 32 by 32) VVVVVV
...,<width>, <height>
'''


Gui.image(win, 0, 0, "C:\\Users\\David\\Desktop\\photo.jpg", True, 32, 32)


'''
VVVV Fill a whole row with an array (Array length depends on how wide your grid is(default 6))
'''
samplearray = ["David Smerkous", "1", "7/11/15", "LS22", "78", ""]

Gui.setrow(win, samplearray, 1)  # fill a whole row 1


secondsample = ["Oliver Warne", "2", "7/13/15", "Collab space", "120", ""]

Gui.setrow(win, secondsample, 5)  # fill a whole row 5


'''
VVVVV Edit a whole column VVVVV
'''


columnsample = ["1", "2", "3", "4", "5", "6", "7", "8", "9"]

Gui.setcolumn(win, columnsample, 6, Gui.Label, 1)  # Fill a whole column each array num is a location on the column
Пример #3
0
def location():
    print "location press"
    Gui.cleargrid(win)  # example how to clear grid

def name():
    print "name press"


def year():
    print "year press"
    Gui.deleteentry(win, 0, 0)

def date():
    print "date press"


count = 1
learnerarray = []
for i in range(0,5):
    learnerarray.append(LTSBackend(count).getData())
    count = count + 1

count = 1
for i in learnerarray:
    Gui.setrow(win,i,count)
    count +=1

t = threading.Thread(target=start)
t.start()
Gui.start()