1
2
3
4
5 import _win32_maxpriority
6
8 if (name == "this"):
9 if isinstance(value, class_type):
10 self.__dict__[name] = value.this
11 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
12 del value.thisown
13 return
14 method = class_type.__swig_setmethods__.get(name,None)
15 if method: return method(self,value)
16 if (not static) or hasattr(self,name) or (name == "thisown"):
17 self.__dict__[name] = value
18 else:
19 raise AttributeError("You cannot add attributes to %s" % self)
20
22 return _swig_setattr_nondynamic(self,class_type,name,value,0)
23
25 method = class_type.__swig_getmethods__.get(name,None)
26 if method: return method(self)
27 raise AttributeError,name
28
29 import types
30 try:
31 _object = types.ObjectType
32 _newclass = 1
33 except AttributeError:
35 _newclass = 0
36 del types
37
38
39 IDLE_PRIORITY_CLASS = _win32_maxpriority.IDLE_PRIORITY_CLASS
40 NORMAL_PRIORITY_CLASS = _win32_maxpriority.NORMAL_PRIORITY_CLASS
41 HIGH_PRIORITY_CLASS = _win32_maxpriority.HIGH_PRIORITY_CLASS
42 REALTIME_PRIORITY_CLASS = _win32_maxpriority.REALTIME_PRIORITY_CLASS
43 THREAD_PRIORITY_IDLE = _win32_maxpriority.THREAD_PRIORITY_IDLE
44 THREAD_PRIORITY_LOWEST = _win32_maxpriority.THREAD_PRIORITY_LOWEST
45 THREAD_PRIORITY_BELOW_NORMAL = _win32_maxpriority.THREAD_PRIORITY_BELOW_NORMAL
46 THREAD_PRIORITY_NORMAL = _win32_maxpriority.THREAD_PRIORITY_NORMAL
47 THREAD_PRIORITY_ABOVE_NORMAL = _win32_maxpriority.THREAD_PRIORITY_ABOVE_NORMAL
48 THREAD_PRIORITY_HIGHEST = _win32_maxpriority.THREAD_PRIORITY_HIGHEST
49 THREAD_PRIORITY_TIME_CRITICAL = _win32_maxpriority.THREAD_PRIORITY_TIME_CRITICAL
50
51 set_self_process_priority_class = _win32_maxpriority.set_self_process_priority_class
52
53 set_self_thread_priority = _win32_maxpriority.set_self_thread_priority
54