本文整理汇总了Python中Engine.buttonPayClick方法的典型用法代码示例。如果您正苦于以下问题:Python Engine.buttonPayClick方法的具体用法?Python Engine.buttonPayClick怎么用?Python Engine.buttonPayClick使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine
的用法示例。
在下文中一共展示了Engine.buttonPayClick方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Radiobutton
# 需要导入模块: import Engine [as 别名]
# 或者: from Engine import buttonPayClick [as 别名]
radiobuttons.append(
Radiobutton(master=frameInputs, text=str(i), indicatoron=0,
bg=BGR, fg=FGR, font=FONT,
value=i, variable=inputChoice)
)
radiobuttons[1].select()
##############################################################################
## Buttons ##
##############################################################################
buttonBet = Button(master=root, text=BUTTONBET,fg=FGB, bg=BGB, font=(FONT,
FONTSIZEB), command=lambda: Engine.buttonBetClick())
buttonPay = Button(master=root, text=BUTTONPAY, fg=FGB, bg=BGB, font=(FONT,
FONTSIZEB), state='disabled', command=lambda: Engine.buttonPayClick())
buttonDice = Button(master=root, text=BUTTONDICE, fg=FGB, bg=BGB, font=(FONT,
FONTSIZEB), state='disabled', command=lambda: Engine.buttonDiceClick())
##############################################################################
## Layout ##
##############################################################################
## Putting in the grid
labelTitle.grid(row=0, column=0, columnspan=3, padx=PADX, pady=PADY)
labelSegment1.grid(row=1, column=0, padx=PADX, pady=PADY)
labelSegment2.grid(row=1, column=1, padx=PADX, pady=PADY)
labelSegment3.grid(row=1, column=2, padx=PADX, pady=PADY)
labelCredit.grid(row=2, column=0, padx=PADX, pady=PADY)
frameInputs.grid(row=2, column=1, padx=PADX, pady=PADY)