Files
Phoenix/unittests/test_metafile.py
Robin Dunn 986d868ccb Begin merging the remaining parts for PR #35.
Add _msw module for wxMSW-only things, starting with the metafile classes.
2016-05-13 18:51:53 -07:00

26 lines
596 B
Python

import unittest
import wtc
import wx
import wx.msw
import os
fileName = 'metafiletest.emf'
#---------------------------------------------------------------------------
class MetafileDCTests(wtc.WidgetTestCase):
@unittest.skipIf('wxMSW' in wx.PlatformInfo, "Metafile classes only implemented on Windows")
def test_MetafileDC1(self):
dc = wx.msw.MetafileDC(fileName)
dc.DrawLine(0,0, 50,50)
del dc
os.remove(fileName)
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()