Exemplo n.º 1
0
 def get_bool_with_scope(self,
                         key,
                         view=None,
                         scope=SettingsScope.SettingsAutoScope):
     if view is not None:
         view = view.handle
     c_scope = core.SettingsScopeEnum(scope)
     result = core.BNSettingsGetBool(self.handle, key, view,
                                     ctypes.byref(c_scope))
     return (result, SettingsScope(c_scope.value))
Exemplo n.º 2
0
 def get_bool(self, key, view=None):
     if view is not None:
         view = view.handle
     return core.BNSettingsGetBool(self.handle, key, view, None)
Exemplo n.º 3
0
 def get_bool(self, id, view=None):
     if view is not None:
         view = view.handle
     return core.BNSettingsGetBool(self.registry_id, id, view, None)