Skip to content

Instantly share code, notes, and snippets.

@batok
Created February 10, 2009 19:41
Show Gist options
  • Save batok/61550 to your computer and use it in GitHub Desktop.
Save batok/61550 to your computer and use it in GitHub Desktop.
help = wx.Menu()
self.help = help
ID_MENU_HELP_ABOUT = wx.NewId()
self.ID_MENU_HELP_ABOUT = ID_MENU_HELP_ABOUT
about = help.Append(ID_MENU_HELP_ABOUT,"About")
idle = help.Append(-1,"Date will be here")
mb.Append( engine, "Engine")
mb.Append( blog , "Blog")
mb.Append( help, "Help")
self.SetMenuBar(mb)
self.CreateStatusBar()
self.Bind(wx.EVT_MENU, self.OnExit, exit)
self.Bind(wx.EVT_MENU, self.OnAbout, id = ID_MENU_HELP_ABOUT)
self.Bind(wx.EVT_MENU, self.OnLogin, id = self.ID_MENU_ENGINE_LOGIN)
wx.GetApp().Bind(wx.EVT_UPDATE_UI, self.OnIdle, idle)
#process = LaunchProcess(self)
#process.start()
process = Process( target=counter, args = (self.q_in, self.q_out, self))
process.start()
def OnExit(self, event):
self.Close()
def OnIdle(self,event):
event.SetText( time.ctime())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment