コード例 #1
0
ファイル: test_quartz.py プロジェクト: enthought/enable
        def OnPaint(self, evt):
            dc = wx.PaintDC(self)
            print("paintdc.this:", dc.this)
            print("paintdc.macport: %x" % get_macport(dc))
            print("memdc.this:", self.memdc.this)
            print("memdc.macport: %x" % get_macport(self.memdc))

            # We're done here
            self.Close()
コード例 #2
0
ファイル: test_quartz.py プロジェクト: alexlib/enable
        def OnPaint(self, evt):
            dc = wx.PaintDC(self)
            print("paintdc.this:", dc.this)
            print("paintdc.macport: %x" % get_macport(dc))
            print("memdc.this:", self.memdc.this)
            print("memdc.macport: %x" % get_macport(self.memdc))

            # We're done here
            self.Close()
コード例 #3
0
ファイル: quartz.py プロジェクト: wilsaj/enable
 def _create_gc(self, size, pix_format="bgra32"):
     self.dc = wx.ClientDC(self.control)
     gc = _WindowGraphicsContext(get_macport(self.dc), self.dc.GetSizeTuple())
     gc.begin()
     return gc
コード例 #4
0
 def _create_gc(self, size, pix_format="bgra32"):
     self.dc = wx.ClientDC(self.control)
     gc = _WindowGraphicsContext(self.dc.GetSize().Get(),
                                 get_macport(self.dc))
     gc.begin()
     return gc
コード例 #5
0
ファイル: macport_test.py プロジェクト: GaZ3ll3/enable
 def OnPaint(self, evt):
     dc = wx.PaintDC(self)
     print "paintdc.this:", dc.this
     print "paintdc.macport:", get_macport(dc)
     print "memdc.this:", self.memdc.this
     print "memdc.macport:", get_macport(self.memdc)