From 1f3f2deefbd8ee92a7900f92baf02187e21f0ea5 Mon Sep 17 00:00:00 2001 From: chriskiehl Date: Mon, 25 May 2015 16:04:47 -0400 Subject: [PATCH] Added additional convenience methods --- gooey/gui/styling.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gooey/gui/styling.py b/gooey/gui/styling.py index 5b3e205..352f55e 100644 --- a/gooey/gui/styling.py +++ b/gooey/gui/styling.py @@ -30,11 +30,23 @@ def H1(parent, label): text.SetFont(font) return text +def H2(parent, label): + text = wx.StaticText(parent, label=label) + font_size = text.GetFont().GetPointSize() + font = wx.Font(font_size * 1.2, wx.FONTFAMILY_DEFAULT, wx.FONTWEIGHT_NORMAL, wx.FONTWEIGHT_NORMAL, False) + text.SetFont(font) + return text + def HorizontalRule(parent): line = wx.StaticLine(parent, -1, style=wx.LI_HORIZONTAL) line.SetSize((10, 10)) return line +def vertical_rule(parent): + line = wx.StaticLine(parent, -1, style=wx.LI_VERTICAL) + line.SetSize((10, 10)) + return line + def MakeDarkGrey(statictext): darkgray = (54, 54, 54) - statictext.SetForegroundColour(darkgray) \ No newline at end of file + statictext.SetForegroundColour(darkgray)