mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
27 lines
652 B
Python
27 lines
652 B
Python
import imp_unittest, unittest
|
|
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, [])
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|