本文整理汇总了Python中Resources.getStageMsg方法的典型用法代码示例。如果您正苦于以下问题:Python Resources.getStageMsg方法的具体用法?Python Resources.getStageMsg怎么用?Python Resources.getStageMsg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resources
的用法示例。
在下文中一共展示了Resources.getStageMsg方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SetStage
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import getStageMsg [as 别名]
def SetStage(self):
if (self.stage == 1):
makeTiles = Thread(target=MakeTiles)
makeTiles.setName("makeTiles")
#makeTiles.setDaemon(False) #python won't wait for thread to terminate if daemon
makeTiles.start()
msg = Resources.getStageMsg(self.stage) % (self.currentChart, Resources.numBsbFiles)
if (self.stage == 2):
mergeTiles = Thread(target=MergeTiles)
mergeTiles.setName("mergeTiles")
#mergeTiles.setDaemon(False) #python won't wait for thread to terminate if daemon
mergeTiles.start()
msg = Resources.getStageMsg(self.stage)
if (self.stage == 3):
quanTiles = Thread(target=QuantTiles)
quanTiles.setName("quanTiles")
#quanTiles.setDaemon(False) #python won't wait for thread to terminate if daemon
quanTiles.start()
msg = Resources.getStageMsg(self.stage)
if (self.stage == 4):
concatTiles = Thread(target=ConcatTiles)
concatTiles.setName("concatTiles")
#concatTiles.setDaemon(False) #python won't wait for thread to terminate if daemon
concatTiles.start()
msg = Resources.getStageMsg(self.stage)
if (self.stage == 5):
genData = Thread(target=GenData)
genData.setName("genData")
#genData.setDaemon(False) #python won't wait for thread to terminate if daemon
genData.start()
msg = Resources.getStageMsg(self.stage)
self.step4Msg_staticText.SetLabel(msg)
self.SetSizer(self.bSizer)
self.Layout()
self.bSizer.Fit(self)
示例2: nextStage
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import getStageMsg [as 别名]
def nextStage(self, event):
#print "nextStage", event.advance
if event.advance:
if self.stage == 5:
dialog = ResultsDialog(None)
dialog.setResultMessage()
dialog.Show()
self.Destroy()
else:
self.stage += 1
self.SetStage()
if not event.advance:
self.currentChart += 1
self.step4Msg_staticText.SetLabel(Resources.getStageMsg(1) % (self.currentChart, Resources.numBsbFiles))