Files
Phoenix/unittests/test_dcmemory.py
Robin Dunn 8171e9d81a Add and update DC unittests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:12:54 +00:00

35 lines
818 B
Python

import imp_unittest, unittest
import wtc
import wx
import sys
#---------------------------------------------------------------------------
class MemoryDCTests(wtc.WidgetTestCase):
def test_MemoryDC1(self):
bmp = wx.Bitmap(250,250)
dc = wx.MemoryDC()
dc.SelectObject(bmp)
dc.DrawLine(0,0, 50,50)
def test_MemoryDC2(self):
bmp = wx.Bitmap(250,250)
dc = wx.MemoryDC(bmp)
dc.DrawLine(0,0, 50,50)
def test_MemoryDC3(self):
cdc = wx.ClientDC(self.frame)
dc = wx.MemoryDC(cdc)
bmp = wx.Bitmap(250,250)
dc.SelectObject(bmp)
dc.DrawLine(0,0, 50,50)
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()