Home | History | Annotate | Download | only in plat-mac

Lines Matching refs:attr

98     def __setattr__(self, attr, val):
99 if attr == 'baseAddr':
101 elif attr == 'data':
104 elif attr == 'rowBytes':
107 elif attr == 'bounds':
113 elif attr == 'hRes' or attr == 'vRes':
115 self._stuff(attr, int(val) << 16)
116 elif attr in _pmElemFormat.keys():
118 self._stuff(attr, val)
120 self.__dict__[attr] = val
122 def __getattr__(self, attr):
123 if attr == 'rowBytes':
126 elif attr == 'bounds':
133 elif attr == 'hRes' or attr == 'vRes':
135 return self._unstuff(attr) >> 16
136 elif attr in _pmElemFormat.keys():
138 return self._unstuff(attr)
140 return self.__dict__[attr]