def invalidate_rect(self, r):
     self._ns_inner_view.setNeedsDisplayInRect_(rect_to_ns_rect(r))
예제 #2
0
 def draw(self, canvas, src_rect, dst_rect):
     ns_src_rect = rect_to_ns_rect(src_rect)
     ns_dst_rect = rect_to_ns_rect(dst_rect)
     self._ns_image.drawInRect_fromRect_operation_fraction_(
         ns_dst_rect, ns_src_rect, NSCompositeSourceOver, 1.0)
예제 #3
0
 def invalidate_rect(self, r):
     self._ns_inner_view.setNeedsDisplayInRect_(rect_to_ns_rect(r))
예제 #4
0
파일: ImageBase.py 프로젝트: mnabeelp/PyGUI
 def draw(self, canvas, src_rect, dst_rect):
     ns_src_rect = rect_to_ns_rect(src_rect)
     ns_dst_rect = rect_to_ns_rect(dst_rect)
     self._ns_image.drawInRect_fromRect_operation_fraction_(
         ns_dst_rect, ns_src_rect, NSCompositeSourceOver, 1.0)