def __init__(self, title, content, padding=0, font_size=-1): Dialog.__init__(self, title) szr = sizers.VerticalSizer() html = htmlwindow.HtmlWindow(self, text=content) html.SetStandardFonts(size=font_size) szr.add_expanding(html, padding=padding) self.SetSizer(szr)
def __init__(self, title, content, padding=0, font_size=-1): Dialog.__init__(self, title) # set Left to Right direction (while we don't have localization) self.SetLayoutDirection(wx.Layout_LeftToRight) szr = sizers.VerticalSizer() html = htmlwindow.HtmlWindow(self, text=content) html.SetStandardFonts(size=font_size) szr.add_expanding(html, padding=padding) self.SetSizer(szr)
def __init__(self, title, content, padding=0): Dialog.__init__(self, title) szr = sizers.VerticalSizer() szr.add_expanding(htmlwindow.HtmlWindow(self, text=content), padding=padding) self.SetSizer(szr)