本文整理汇总了Python中pychess.ic.ICLogon.run方法的典型用法代码示例。如果您正苦于以下问题:Python ICLogon.run方法的具体用法?Python ICLogon.run怎么用?Python ICLogon.run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pychess.ic.ICLogon
的用法示例。
在下文中一共展示了ICLogon.run方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: connectClicked
# 需要导入模块: from pychess.ic import ICLogon [as 别名]
# 或者: from pychess.ic.ICLogon import run [as 别名]
def connectClicked(self, button):
asGuest = self.widgets["asGuestCheck"].get_active()
username = self.widgets["usernameEntry"].get_text()
password = self.widgets["passwordEntry"].get_text()
ICLogon.run()
if not ICLogon.dialog.connection:
ICLogon.dialog.widgets["logOnAsGuest"].set_active(asGuest)
ICLogon.dialog.widgets["nameEntry"].set_text(username)
ICLogon.dialog.widgets["passEntry"].set_text(password)
ICLogon.dialog.widgets["connectButton"].clicked()
示例2: on_play_internet_chess_activate
# 需要导入模块: from pychess.ic import ICLogon [as 别名]
# 或者: from pychess.ic.ICLogon import run [as 别名]
def on_play_internet_chess_activate(self, widget):
ICLogon.run()
示例3: openDialogClicked
# 需要导入模块: from pychess.ic import ICLogon [as 别名]
# 或者: from pychess.ic.ICLogon import run [as 别名]
def openDialogClicked(self, button):
ICLogon.run()
示例4: connectClicked
# 需要导入模块: from pychess.ic import ICLogon [as 别名]
# 或者: from pychess.ic.ICLogon import run [as 别名]
def connectClicked(self, button):
ICLogon.run()
if not ICLogon.dialog.connection:
ICLogon.dialog.widgets["connectButton"].clicked()