本文整理汇总了Python中gui.Gui.setrow方法的典型用法代码示例。如果您正苦于以下问题:Python Gui.setrow方法的具体用法?Python Gui.setrow怎么用?Python Gui.setrow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.Gui
的用法示例。
在下文中一共展示了Gui.setrow方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: start
# 需要导入模块: from gui import Gui [as 别名]
# 或者: from gui.Gui import setrow [as 别名]
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: grid
# 需要导入模块: from gui import Gui [as 别名]
# 或者: from gui.Gui import setrow [as 别名]
'''
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: location
# 需要导入模块: from gui import Gui [as 别名]
# 或者: from gui.Gui import setrow [as 别名]
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()