Files
Phoenix/unittests/test_dcmemory.py
2016-12-05 16:19:11 -06:00

35 lines
783 B
Python

import unittest
from unittests 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()