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