mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
35 lines
783 B
Python
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()
|