mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
25 lines
483 B
Python
25 lines
483 B
Python
import unittest
|
|
from unittests import wtc
|
|
import wx
|
|
import sys
|
|
import os
|
|
|
|
fileName = 'svgtest.svg'
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class SvgDCTests(wtc.WidgetTestCase):
|
|
|
|
def test_SvgDC1(self):
|
|
dc = wx.SVGFileDC(fileName)
|
|
dc.DrawLine(0,0, 50,50)
|
|
del dc
|
|
|
|
os.remove(fileName)
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|