예제 #1
0
    Gui.settitle(win, "Test Button Pressed")


'''
^^^^^ END OF BUTTON CALLBACKS ^^^^^






VVVVVVV set default window/grid system VVVV
'''


Gui.setdefault(win)  # insert default grid values, such as name, time, year, etc..


'''
VVVVV set the control buttons with the callbacks(Look above to see the callbacks VVVVV
'''


Gui.control(win, location, name, year, date)  # Set button controls for sorting (Location, Name, Year, Etc...)


'''
VVVVV add an image to the grid(<window>, <row>, <column>, <path to image>, <Resize image(default 32 by 32) VVVVVV
...,<width>, <height>
'''
예제 #2
0
    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)

win = Gui()
Gui.setdefault(win)

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"