mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-06 18:00:24 +02:00
Ensure sip knows the pure virtuals are present in wx.html.HtmlPrintout
(cherry picked from commit 17f52dfd14
)
34 lines
828 B
Python
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()
|