本文整理汇总了Python中PyGUIBase.PyGUIBase.onLoad方法的典型用法代码示例。如果您正苦于以下问题:Python PyGUIBase.onLoad方法的具体用法?Python PyGUIBase.onLoad怎么用?Python PyGUIBase.onLoad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyGUIBase.PyGUIBase
的用法示例。
在下文中一共展示了PyGUIBase.onLoad方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: onLoad
# 需要导入模块: from PyGUIBase import PyGUIBase [as 别名]
# 或者: from PyGUIBase.PyGUIBase import onLoad [as 别名]
def onLoad(self, dataSection):
PyGUIBase.onLoad(self, dataSection)
self.buttonStyle = dataSection.readString('buttonStyle')
self.buttonDisabled = dataSection.readBool('buttonDisabled', False)
self.groupName = dataSection.readString('groupName')
self.groupDepth = dataSection.readInt('groupDepth', 1)
VisualStateComponent.onLoad(self, dataSection)
示例2: onLoad
# 需要导入模块: from PyGUIBase import PyGUIBase [as 别名]
# 或者: from PyGUIBase.PyGUIBase import onLoad [as 别名]
def onLoad(self, dataSection):
PyGUIBase.onLoad(self, dataSection)
self.isHorizontal = dataSection.readBool('isHorizontal', self.isHorizontal)
self.minValue = dataSection.readFloat('minValue', self.minValue)
self.maxValue = dataSection.readFloat('maxValue', self.maxValue)
self.stepSize = dataSection.readFloat('stepSize', self.stepSize)
VisualStateComponent.onLoad(self, dataSection)
示例3: onLoad
# 需要导入模块: from PyGUIBase import PyGUIBase [as 别名]
# 或者: from PyGUIBase.PyGUIBase import onLoad [as 别名]
def onLoad(self, dataSection):
PyGUIBase.onLoad(self, dataSection)
self.maxLines = dataSection.readInt('maxLines', self.maxLines)
self.wordWrap = dataSection.readBool('wordWrap', self.wordWrap)
self.idealCharactersPerLine = dataSection.readInt('idealCharactersPerLine', self.idealCharactersPerLine)
fonts = dataSection.readStrings('autoFont')
if len(fonts) > 0:
self.autoSelectionFonts = fonts
示例4: onLoad
# 需要导入模块: from PyGUIBase import PyGUIBase [as 别名]
# 或者: from PyGUIBase.PyGUIBase import onLoad [as 别名]
def onLoad(self, dataSection):
PyGUIBase.onLoad(self, dataSection)
self.maxLength = dataSection.readInt('maxLength', self.maxLength)
self.focusViaMouse = dataSection.readBool('focusViaMouse', True)
self.enableIME = dataSection.readBool('enableIME', False)
self.shouldAdjustClipping = dataSection.readBool('shouldAdjustClipping', False)
self.activeColour = dataSection.readVector4('activeColour', DEFAULT_TEXT_COLOUR_ACTIVE)
self.inactiveColour = dataSection.readVector4('inactiveColour', DEFAULT_TEXT_COLOUR_INACTIVE)
self.__allowAutoDefocus = dataSection.readBool('allowAutoDefocus', True)
self.idealVisibleCharacters = dataSection.readInt('idealVisibleCharacters', self.idealVisibleCharacters)
fonts = dataSection.readStrings('autoFont')
if len(fonts) > 0:
self.autoSelectionFonts = fonts
示例5: onLoad
# 需要导入模块: from PyGUIBase import PyGUIBase [as 别名]
# 或者: from PyGUIBase.PyGUIBase import onLoad [as 别名]
def onLoad(self, dataSection):
PyGUIBase.onLoad(self, dataSection)
self.autoSize = dataSection.readBool('autoSize', True)
self.padding = dataSection.readInt('padding', 5)
self.square = dataSection.readBool('square', True)
示例6: onLoad
# 需要导入模块: from PyGUIBase import PyGUIBase [as 别名]
# 或者: from PyGUIBase.PyGUIBase import onLoad [as 别名]
def onLoad(self, dataSection):
PyGUIBase.onLoad(self, dataSection)