You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
641 B

10 years ago
  1. __author__ = 'Chris'
  2. import wx
  3. from gooey.gui.widgets.choosers import CalendarChooser
  4. class MyFrame(wx.Frame):
  5. def __init__(self, parent):
  6. wx.Frame.__init__(self, parent, title="test", size=(320, 240))
  7. self.SetBackgroundColour('#ffffff')
  8. sizer = wx.BoxSizer(wx.VERTICAL)
  9. f = CalendarChooser({'title':'cool title', 'help_msg':'cool help msg that is super long and intense andd has lots of words!', 'nargs': '+'})
  10. sizer.Add(f.build(self), 0, wx.EXPAND)
  11. self.SetSizer(sizer)
  12. if __name__ == '__main__':
  13. app = wx.App(False)
  14. frame = MyFrame(None)
  15. frame.Show(True)
  16. app.MainLoop()