本文整理汇总了Python中configtool.page.Page.getValues方法的典型用法代码示例。如果您正苦于以下问题:Python Page.getValues方法的具体用法?Python Page.getValues怎么用?Python Page.getValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类configtool.page.Page
的用法示例。
在下文中一共展示了Page.getValues方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for tag in self.accTypeKeys:
result[tag] = self.radioButtons[tag].GetValue()
return result
示例2: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for tag in self.kinematicsKeys:
result[tag] = self.radioButtons[tag].GetValue()
return result
示例3: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for k in self.choices.keys():
if k in result.keys() and result[k] == "-":
result[k] = ""
return result
示例4: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
if result['USB_SERIAL']:
result['BAUD'] = result['BAUD'][0], False
result['XONXOFF'] = False
return result
示例5: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
if result["USB_SERIAL"]:
result["BAUD"][1] = False
result["XONXOFF"] = False
return result
示例6: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for tag in self.kinematicsKeys:
rb = self.radioButtons[tag]
if rb.GetValue():
result['KINEMATICS'] = tag, True
break
return result
示例7: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for k in self.choices.keys():
if result[k][0] == "-":
if k in self.choicesOriginal.keys():
result[k] = self.choicesOriginal[k][0], False
else:
result[k] = "", False
return result
示例8: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
k = 'DC_EXTRUDER'
s = self.choices[k].GetSelection()
v = self.choices[k].GetString(s)
if v == self.heaterNameNone:
result[k] = ""
else:
result[k] = "HEATER_%s" % v
return result
示例9: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for tag in self.kinematicsKeys:
result[tag] = self.radioButtons[tag].GetValue()
result['HOMING_STEP1'] = self.getHomingValue('HOMING_STEP1', result)
result['HOMING_STEP2'] = self.getHomingValue('HOMING_STEP2', result)
result['HOMING_STEP3'] = self.getHomingValue('HOMING_STEP3', result)
result['HOMING_STEP4'] = self.getHomingValue('HOMING_STEP4', result)
return result
示例10: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
values = {}
for k in self.sensorTypeKeys.values():
values[k] = False
for s in self.sensors:
values[self.sensorTypeKeys[s[1]]] = True
for v in values.keys():
result[v] = values[v]
return result
示例11: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
k = 'DC_EXTRUDER'
s = self.choices[k].GetSelection()
v = self.choices[k].GetString(s)
if v == self.heaterNameNone:
if k in self.choicesOriginal.keys():
result[k] = self.choicesOriginal[k][0], False
else:
result[k] = "", False
else:
result[k] = "HEATER_%s" % v, True
return result
示例12: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
for tag in self.kinematicsKeys:
rb = self.radioButtons[tag]
if rb.GetValue():
result['KINEMATICS'] = tag
break
for tag in self.kinematicsKeys:
try:
del result[tag]
except:
pass
return result
示例13: getValues
# 需要导入模块: from configtool.page import Page [as 别名]
# 或者: from configtool.page.Page import getValues [as 别名]
def getValues(self):
result = Page.getValues(self)
values = {}
for k in self.sensorTypeKeys.values():
values[k] = False
for s in self.sensors:
values[self.sensorTypeKeys[s[1]]] = True
for v in values.keys():
result[v] = values[v]
for k in self.choices.keys():
if result[k][0] == "-":
if k in self.choicesOriginal.keys():
result[k] = self.choicesOriginal[k][0], False
else:
result[k] = "", False
return result