예제 #1
0
 def get_double_with_scope(self,
                           key,
                           view=None,
                           scope=SettingsScope.SettingsAutoScope):
     if view is not None:
         view = view.handle
     c_scope = core.SettingsScopeEnum(scope)
     result = core.BNSettingsGetDouble(self.handle, key, view,
                                       ctypes.byref(c_scope))
     return (result, SettingsScope(c_scope.value))
예제 #2
0
 def get_double(self, key, view=None):
     if view is not None:
         view = view.handle
     return core.BNSettingsGetDouble(self.handle, key, view, None)
예제 #3
0
 def get_double(self, id, view=None):
     if view is not None:
         view = view.handle
     return core.BNSettingsGetDouble(self.registry_id, id, view, None)