31 from python_qt_binding.QtCore
import QObject, Slot
35 """Storage of key-value data with a QSettings-like interface.""" 39 self.setObjectName(
'Settings')
51 return self._settings_proxy.all_keys(self.
_group)
58 return self._settings_proxy.child_groups(self.
_group)
61 return self._settings_proxy.child_keys(self.
_group)
63 @Slot(str, result=bool)
65 return self._settings_proxy.contains(self.
_group, key)
71 self._settings_proxy.remove(self.
_group, key)
75 @Slot(str,
'QVariant')
79 value =
'__NoneType__' 80 self._settings_proxy.set_value(self.
_group, key, value)
82 @Slot(str,
'QVariant', result=
'QVariant')
83 def value(self, key, default_value=None):
85 if default_value
is None:
86 default_value =
'__NoneType__' 87 value = self._settings_proxy.value(self.
_group, key, default_value)
88 if value ==
'__NoneType__':
def get_settings(self, group)
def set_value(self, key, value)
def __init__(self, settings_proxy, group)
def value(self, key, default_value=None)