Files
Phoenix/unittests/test_htmlprint.py
Robin Dunn 653d91b372 Merge pull request #1064 from RobinD42/fix-issue1060
Ensure sip knows the pure virtuals are present in wx.html.HtmlPrintout

(cherry picked from commit 17f52dfd14)
2018-10-29 22:18:08 -07:00

34 lines
828 B
Python

import unittest
from unittests import wtc
import wx
import wx.html
#---------------------------------------------------------------------------
class htmlprint_Tests(wtc.WidgetTestCase):
def test_htmlprint1(self):
size = (100,100)
bmp = wx.Bitmap(*size)
dc = wx.MemoryDC(bmp)
obj = wx.html.HtmlDCRenderer()
obj.SetDC(dc)
obj.SetSize(*size)
obj.SetHtmlText('<body><h1>Hello World</h1></body>')
obj.Render(0,0, [])
def test_htmlprint2(self):
hep = wx.html.HtmlEasyPrinting(parentWindow=self.frame)
hep.SetFonts('', '', [7,8,10,12,16,22,30])
def test_htmlprint3(self):
po = wx.html.HtmlPrintout()
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()