Skip to content

Instantly share code, notes, and snippets.

@mkeeter
Created April 20, 2012 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkeeter/2429815 to your computer and use it in GitHub Desktop.
Save mkeeter/2429815 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import wx
class MyStatusBar(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, -1)
demo_menu = wx.Menu()
demo_menu.AppendCheckItem(-1,'Test','Status text!')
menu_bar = wx.MenuBar()
menu_bar.Append(demo_menu, 'Demo')
sub_menu = wx.Menu()
demo_menu.AppendSubMenu(sub_menu, 'Sub')
self.SetMenuBar(menu_bar)
self.CreateStatusBar()
class MyApp(wx.App):
def OnInit(self):
frame = MyStatusBar(None, 'statusbar.py')
frame.Show(True)
return True
app = MyApp()
app.MainLoop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment