#NEWLINE# def get_mode( self ) : #NEWLINE# #INDENT# quartz . CGDisplayCopyDisplayMode . restype = c_void_p #NEWLINE# cgmode = c_void_p ( quartz . CGDisplayCopyDisplayMode ( self . _cg_display_id ) ) #NEWLINE# mode = CocoaScreenMode ( mode , cgmode ) #NEWLINE# quartz . CGDisplayModeRelease ( cgmode ) #NEWLINE# return mode