예제 #1
0
 def __del__(self):
     quartz.CGDisplayModeRelease(self.cgmode)
     self.cgmode = None
예제 #2
0
 def get_mode(self):
     cgmode = c_void_p(quartz.CGDisplayCopyDisplayMode(self._cg_display_id))
     mode = CocoaScreenMode(self, cgmode)
     quartz.CGDisplayModeRelease(cgmode)
     return mode