mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-03-17 22:20:08 +01:00
Merge pull request #326 from RobinD42/fix-issue322
Fix the SetFonts method in HtmlEasyPrinting and HtmlPrintout
This commit is contained in:
@@ -45,10 +45,12 @@ def run():
|
||||
c = module.find('wxHtmlEasyPrinting')
|
||||
c.mustHaveApp()
|
||||
c.addPrivateCopyCtor()
|
||||
tools.fixHtmlSetFonts(c)
|
||||
|
||||
c = module.find('wxHtmlPrintout')
|
||||
c.mustHaveApp()
|
||||
c.addPrivateCopyCtor()
|
||||
tools.fixHtmlSetFonts(c)
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
||||
@@ -172,7 +172,7 @@ class dc_Tests(wtc.WidgetTestCase):
|
||||
def test_dcPointLists(self):
|
||||
dc = wx.ClientDC(self.frame)
|
||||
dc.DrawLines([wx.Point(5,5), wx.Point(25,5), wx.Point(25,25), wx.Point(25,5), wx.Point(5,5)])
|
||||
dc.DrawLines([(15,15), (35,15), (35,35), (35,15), (15,15)])
|
||||
dc.DrawLines( [(15,15), (35,15), (35,35), (35,15), (15,15)] )
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -20,6 +20,11 @@ class htmlprint_Tests(wtc.WidgetTestCase):
|
||||
obj.Render(0,0, [])
|
||||
|
||||
|
||||
def test_htmlprint2(self):
|
||||
hep = wx.html.HtmlEasyPrinting(parentWindow=self.frame)
|
||||
hep.SetFonts('', '', [7,8,10,12,16,22,30])
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user