本文整理汇总了Python中UIBase.UIBase类的典型用法代码示例。如果您正苦于以下问题:Python UIBase类的具体用法?Python UIBase怎么用?Python UIBase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UIBase类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: mainException
def mainException(s):
if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \
s.iswaiting:
sys.stdout.write("Timer interrupted at user request; program terminating. \n")
s.terminate()
else:
UIBase.mainException(s)
示例2: unregisterthread
def unregisterthread(s, thread):
UIBase.unregisterthread(s, thread)
s._printData('unregisterthread', thread.getName())
示例3: registerthread
def registerthread(s, account):
UIBase.registerthread(s, account)
s._printData('registerthread', account)
示例4: __init__
def __init__(s, config, verbose = 0):
UIBase.__init__(s, config, verbose)
s.safechars=" ;,./-_=+()[]"
s.iswaiting = 0
s.outputlock = Lock()
s._printData('__init__', protocol)
示例5: threadExited
def threadExited(s, thread):
s._printData('threadExited', thread.getName())
UIBase.threadExited(s, thread)
示例6: sleep
def sleep(s, sleepsecs, siglistener):
if s.verbose >= 0:
s._msg("Sleeping for %d:%02d" % (sleepsecs / 60, sleepsecs % 60))
return UIBase.sleep(s, sleepsecs, siglistener)
示例7: __init__
def __init__(s, config, verbose = 0):
UIBase.__init__(s, config, verbose)
s.iswaiting = 0
s.outputlock = Lock()
s._lastThreaddisplay = None
示例8: __init__
def __init__(s, config, verbose=0):
UIBase.__init__(s, config, verbose)
s.iswaiting = 0
s.outputlock = Lock()
示例9: mainException
def mainException(s):
s.c.stop()
UIBase.mainException(s)
示例10: threadException
def threadException(s, thread):
s.c.stop()
UIBase.threadException(s, thread)
示例11: terminate
def terminate(s, exitstatus=0, errortitle=None, errormsg=None):
s.c.stop()
UIBase.terminate(s, exitstatus=exitstatus, errortitle=errortitle, errormsg=errormsg)
示例12: sleep
def sleep(s, sleepsecs):
if s.verbose >= 0:
s._msg("Sleeping for %d:%02d" % (sleepsecs / 60, sleepsecs % 60))
UIBase.sleep(s, sleepsecs)