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

Method init

Utils/CommonUtil.py:94–101  ·  view source on GitHub ↗

初始化配置实例 :param cls: :param parent:

(cls, parent=None)

Source from the content-addressed store, hash-verified

92
93 @classmethod
94 def init(cls, parent=None):
95 """初始化配置实例
96 :param cls:
97 :param parent:
98 """
99 if not cls._Setting:
100 cls._Setting = QSettings(ConfigFile, QSettings.IniFormat, parent)
101 cls._Setting.setIniCodec(QTextCodec.codecForName('utf-8'))
102
103 @classmethod
104 def value(cls, key, default=None, typ=None):

Callers 3

valueMethod · 0.45
setValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected