cheapbag214s |
|
|
|
Joined: 27 Jun 2013 |
Posts: 20570 |
Read: 0 topics
Warns: 0/5
|
Location: England |
|
|
|
|
|
|
self.fileMenu = wx.Menu()
self.fileMenu.Append(ID_EXIT, "Exit", "Exit the program")
self.menuBar = wx.MenuBar()
self.menuBar.Append(self.fileMenu, "File")
self.SetMenuBar(self.menuBar)
wx.EVT_MENU(self, ID_EXIT, self.OnExit)
self.Panel = MainPanel(self)
self.CentreOnScreen()
self.Show()
[url=http://www.doble.com/general/it/hogan.php]Hogan Italia Outlet[/url] def OnExit(self, event):
self.Close()
if __name__ == [url=http://www.doble.com/general/it/hogan.php]Hogan Sito Ufficiale[/url] "__main__":
app = wx.App(False)
frame = MainWindow()
app.MainLoop() [EDIT:] Here is an extract of the OnRun and OnIndex methods. Is there a () to much or maybe an , ?
def OnRun(self, Event=None):
#---Check input values, continue if not wrong
if self.CheckValid() == 0:
#Get root directory
root_path = self.textChooseRoot.GetValue()
#Get scratch workspace
scratch_workspace =self.textScratchWrk.GetValue()
#Get merge file
merge_fil = self.textMergeFile.GetValue()
thread.start_new_thread(self.
相关的主题文章:
[url=http://www.myip.cn/cgimage.lv]http://www.myip.cn/cgimage.lv[/url]
[url=http://www13.plala.or.jp/white_roots/gwbbs/gwbbs.cgi]http://www13.plala.or.jp/white_roots/gwbbs/gwbbs.cgi[/url]
[url=http://www13.plala.or.jp/white_roots/gwbbs/gwbbs.cgi]http://www13.plala.or.jp/white_roots/gwbbs/gwbbs.cgi[/url] |
|