mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
26 lines
596 B
Python
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()
|