本文整理匯總了Python中GUI.startGUI方法的典型用法代碼示例。如果您正苦於以下問題:Python GUI.startGUI方法的具體用法?Python GUI.startGUI怎麽用?Python GUI.startGUI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GUI
的用法示例。
在下文中一共展示了GUI.startGUI方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: reload
# 需要導入模塊: import GUI [as 別名]
# 或者: from GUI import startGUI [as 別名]
# mainApp.py
# -*- coding: utf-8 -*-
import sys,time,random
reload(sys)
import GUI,Data
if __name__=='__main__':
GUI.startGUI()
Data.LOGIN_FRAME.Show()
Data.MAIN_APP.MainLoop()
示例2: hexapod
# 需要導入模塊: import GUI [as 別名]
# 或者: from GUI import startGUI [as 別名]
controller = servotorComm.Controller() # Servo controller
hexy = hexapod(controller)
__builtins__.hexy = hexy # sets 'hexy' to be a gobal variable common to all modules
__builtins__.floor = 60 # this is the minimum level the legs will reach
# go through the Moves folder to find move files
moves = []
for fileName in os.listdir('Moves'):
if os.path.splitext(fileName)[1] == '.py':
fileName = os.path.splitext(fileName)[0]
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1 \2', fileName)
moves.append(s1)
__builtins__.moves = moves
# global function for running move files
def move(moveName):
print "Preforming move:",moveName
moveName = moveName.replace(' ','')
if moveName in sys.modules:
reload(sys.modules[moveName])
else:
__import__(moveName)
__builtins__.move = move
GUI.startGUI(controller)
# the program only reaches here if the GUI has been closed
del hexy
del controller
print "quitting!"
os._exit(0)
示例3: goQtGUI
# 需要導入模塊: import GUI [as 別名]
# 或者: from GUI import startGUI [as 別名]
def goQtGUI(self, option, opt, value, parser):
import GUI
print("ifQtGUI... ")
# star GUI....
GUI.startGUI()
sys.exit(0)