__author__ = 'Chris' import wx import components2 class MyFrame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent, title="test", size=(320, 240)) self.SetBackgroundColour('#ffffff') sizer = wx.BoxSizer(wx.VERTICAL) f = components2.Counter({ 'title': 'cool title', 'help_msg': 'cool help msg that is super long and intense andd has lots of words!', 'nargs': '+', 'option_strings': ['-f', '--fudger'], 'choices': ['choice 1', 'choice 2', 'choice 3'] }) sizer.Add(f.build(self), 0, wx.EXPAND) self.SetSizer(sizer) if __name__ == '__main__': app = wx.App(False) frame = MyFrame(None) frame.Show(True) app.MainLoop()