Merge pull request #326 from RobinD42/fix-issue322

Fix the SetFonts method in HtmlEasyPrinting and HtmlPrintout
This commit is contained in:
Robin Dunn
2017-04-24 18:40:02 -07:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

View File

@@ -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)
#-----------------------------------------------------------------

View File

@@ -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)] )
#---------------------------------------------------------------------------

View File

@@ -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__':