本文整理匯總了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()