本文整理汇总了Python中Configuration.Configuration.render方法的典型用法代码示例。如果您正苦于以下问题:Python Configuration.render方法的具体用法?Python Configuration.render怎么用?Python Configuration.render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configuration.Configuration
的用法示例。
在下文中一共展示了Configuration.render方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from Configuration import Configuration [as 别名]
# 或者: from Configuration.Configuration import render [as 别名]
def main():
configuration = Configuration();
configuration.mRobotArm.move( math.pi/3, -math.pi/5 );
# initialize the pygame module
pygame.init()
# load and set the logo
#logo = pygame.image.load("logo32x32.png")
#pygame.display.set_icon(logo)
pygame.display.set_caption("minimal program")
# create a surface on screen that has the size of 240 x 180
screen = pygame.display.set_mode((1366,768))
white = (255,255,255)
# define a variable to control the main loop
running = True
screen.fill(white)
# main loop
while running:
# event handling, gets all event from the eventqueue
for event in pygame.event.get():
# only do something if the event is of type QUIT
if event.type == pygame.QUIT:
# change the value to False, to exit the main loop
running = False
elif event.type == pygame.KEYDOWN:
pass
configuration.render( screen );
pygame.display.flip()