Created
February 10, 2009 19:41
-
-
Save batok/61550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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