当前位置: 首页>>代码示例>>Python>>正文


Python Page.getValues方法代码示例

本文整理汇总了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
开发者ID:OKComputing,项目名称:Teacup_Firmware,代码行数:9,代码来源:accelerationpage.py

示例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
开发者ID:Wurstnase,项目名称:Teacup_Firmware,代码行数:9,代码来源:mechanicalpage.py

示例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
开发者ID:DEMI1,项目名称:Teacup_Firmware,代码行数:10,代码来源:pinoutspage.py

示例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
开发者ID:mteletin,项目名称:Teacup_Firmware,代码行数:10,代码来源:communicationspage.py

示例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
开发者ID:OKComputing,项目名称:Teacup_Firmware,代码行数:10,代码来源:communicationspage.py

示例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
开发者ID:OKComputing,项目名称:Teacup_Firmware,代码行数:12,代码来源:mechanicalpage.py

示例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
开发者ID:OKComputing,项目名称:Teacup_Firmware,代码行数:13,代码来源:pinoutspage.py

示例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
开发者ID:DEMI1,项目名称:Teacup_Firmware,代码行数:14,代码来源:miscellaneouspage.py

示例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
开发者ID:Traumflug,项目名称:Teacup_Firmware,代码行数:14,代码来源:mechanicalpage.py

示例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
开发者ID:OKComputing,项目名称:Teacup_Firmware,代码行数:16,代码来源:sensorpage.py

示例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
开发者ID:Wurstnase,项目名称:Teacup_Firmware,代码行数:17,代码来源:miscellaneouspage.py

示例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
开发者ID:mandrav,项目名称:Teacup_Firmware,代码行数:18,代码来源:mechanicalpage.py

示例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
开发者ID:applemuncy,项目名称:Teacup_Firmware,代码行数:23,代码来源:sensorpage.py


注:本文中的configtool.page.Page.getValues方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。