Changeset 1242
- Timestamp:
- Mar 4, 2013 11:29:19 AM (9 years ago)
- Location:
- mda2idd_report/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mda2idd_report/src/mda2idd_gui.py
r1241 r1242 101 101 help=u'Save MDA data to ASCII text file') 102 102 self.Bind(wx.EVT_MENU, self.OnMenuFileItemSave, id=item.GetId()) 103 #print "menu item: ", item.GetId(), item.GetLabel()104 103 105 104 item = self.menu_file.Append( … … 108 107 help=u'Convert all MDA files in current directory to ASCII text files') 109 108 self.Bind(wx.EVT_MENU, self.OnConvertAll, id=item.GetId()) 110 #print "menu item: ", item.GetId(), item.GetLabel()111 109 112 110 self.menu_file.AppendSeparator() … … 118 116 self.Bind(wx.EVT_MENU, self.OnMenuFileItemReportStyle, id=item.GetId()) 119 117 self.id_menu_report = item.GetId() 120 #print "menu item: ", item.GetId(), item.GetLabel()121 118 122 119 # TODO: provide a control to let user edit self.preferences_file … … 133 130 self.menu_file.Enable(item.GetId(), False) 134 131 self.mrud_insertion_pos = self.menu_file.GetMenuItemCount() 135 #print "menu item: ", item.GetId(), item.GetLabel()136 132 137 133 self.menu_file.AppendSeparator() … … 140 136 help=u'Quit this application') 141 137 self.Bind(wx.EVT_MENU, self.OnMenuFileItemExit, id=item.GetId()) 142 #print "menu item: ", item.GetId(), item.GetLabel()143 138 144 139 self.menu_edit = wx.Menu(title='') … … 148 143 help=u'About this application') 149 144 self.Bind(wx.EVT_MENU, self.OnAbout, id=item.GetId()) 150 #print "menu item: ", item.GetId(), item.GetLabel()151 145 152 146 self.menuBar1 = wx.MenuBar() … … 295 289 def setCurrentDirectory(self, directory): 296 290 '''set the current directory''' 297 #print "set directory:", str(directory)298 291 self.dir.ExpandPath(directory) 299 292 self.dirPicker.SetPath(directory) … … 301 294 def setSummaryText(self, text): 302 295 '''post new text to the summary TextCtrl, clearing any existing text''' 303 #print "new summary:", str(text)304 296 self.textCtrl1.ChangeValue(str(text)) 305 297 306 298 def appendSummaryText(self, text): 307 299 '''post new text to the summary TextCtrl, appending to any existing text''' 308 #print "additional summary:", str(text)309 300 self.textCtrl1.AppendText(str(text)) 310 301 311 302 def setStatusText(self, text): 312 303 '''post new text to the status bar''' 313 #print "new status:", str(text)314 304 self.statusBar.SetStatusText(text) 315 305 … … 462 452 item = self.menu_file.Insert(position, wx.ID_ANY, text=text) 463 453 self.Bind(wx.EVT_MENU, self.OnMrudItem, id=item.GetId()) 464 #print "menu item: ", item.GetId(), item.GetLabel()465 454 counter += 1 466 455 … … 468 457 '''handle MRUD menu items''' 469 458 label = self.menu_file.GetLabelText(event.GetId()) 470 #print "onMrudItem: ", event.GetId(), str(label)471 459 self.setCurrentDirectory(label) 472 # self.setStatusText(label)473 460 474 461 def OnAbout(self, event): … … 477 464 # First we create and fill the info object 478 465 info = wx.AboutDialogInfo() 479 info.SetName( sys.argv[0])480 info.SetVersion( __version__ ) 481 info.SetDescription( __doc__ )466 info.SetName( os.path.basename(sys.argv[0]) ) 467 info.SetVersion( __version__ ) 468 info.SetDescription( sys.argv[0] + '\n\n' + __doc__ ) 482 469 if float(wx.VERSION_STRING[0:3]) < 2.9: # pre-phoenix wxPython support 483 470 info.SetWebSite( __url__ ) 484 471 else: # phoenix wxPython support 485 472 info.SetWebSite( __url__, desc=__svnid__ ) 486 author = __author__ + " <" + __author_email__ + ">"487 473 info.SetDevelopers( 488 474 ( … … 491 477 ) 492 478 ) 493 # Then we call wx.AboutBox giving it the info object494 479 wx.AboutBox(info) 495 480 … … 500 485 # use path from self.dirPicker widget 501 486 #path = self.dirPicker.GetPath() 502 #print "convert directory:", path503 487 self.setStatusText('Converting all MDA files to ASCII in directory: ' + path) 504 488 self.convertMdaDir(path)
Note: See TracChangeset
for help on using the changeset viewer.