本文整理匯總了Python中Zone.Zone.start方法的典型用法代碼示例。如果您正苦於以下問題:Python Zone.start方法的具體用法?Python Zone.start怎麽用?Python Zone.start使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zone.Zone
的用法示例。
在下文中一共展示了Zone.start方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: loadValues
# 需要導入模塊: from Zone import Zone [as 別名]
# 或者: from Zone.Zone import start [as 別名]
def loadValues(self):
self.zones=[]
config=ConfigParser.RawConfigParser()
config.read(self.cfgFileName)
for section in config.sections():
zone = Zone()
zone.zoneid=config.get(section,"zoneid")
zone.name=config.get(section,"name")
zone.description=config.get(section,"description")
zone.imagearea=config.get(section,"imagearea")
zone.imagearea=config.get(section,"imagearea")
zone.days=config.get(section,"days")
zone.start=config.get(section,"start")
zone.duration=config.get(section,"duration")
#zone.started=config.get(section,"zoneid")
#fields = zone.getDefaultFields()
#for value in fields:
# exec (("zone.%s=config.get(section,name)") ,value)
self.zones.append(zone)
return