예제 #1
0
'''
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>
'''


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