MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / value

Method value

Utils/CommonUtil.py:104–116  ·  view source on GitHub ↗

获取配置中的值 :param cls: :param key: 键名 :param default: 默认值 :param typ: 类型

(cls, key, default=None, typ=None)

Source from the content-addressed store, hash-verified

102
103 @classmethod
104 def value(cls, key, default=None, typ=None):
105 """获取配置中的值
106 :param cls:
107 :param key: 键名
108 :param default: 默认值
109 :param typ: 类型
110 """
111 cls.init()
112 if default != None and typ != None:
113 return cls._Setting.value(key, default, typ)
114 if default != None:
115 return cls._Setting.value(key, default)
116 return cls._Setting.value(key)
117
118 @classmethod
119 def setValue(cls, key, value):

Callers 4

loadThemeMethod · 0.45
loadFontMethod · 0.45
TestSetting.pyFile · 0.45
__init__Method · 0.45

Calls 1

initMethod · 0.45

Tested by 1

__init__Method · 0.36