@@ -86,7 +86,7 @@ def _obtainScreenResolution(self):
8686
8787 '''
8888 if minimumAllowedSize >= wx.GetDisplaySize():
89- logger.fatal("ODMTools cannot be displayed in this resolution: %s \n \t Please use a larger resolution"
89+ logger.fatal("ODM2Tools cannot be displayed in this resolution: %s \n \t Please use a larger resolution"
9090 % wx.GetDisplaySize())
9191 print "minimumAllowedsize: ", minimumAllowedSize, "display: ", wx.GetDisplaySize()
9292 sys.exit(0)
@@ -104,7 +104,7 @@ def _obtainScreenResolution(self):
104104 elif screenWidth < defaultWidth :
105105 newSize = wx .Size (defaultHeight , screenWidth / 1.5 )
106106
107- logger .debug ("ODMTools Window Size: %s" % newSize )
107+ logger .debug ("ODM2Tools Window Size: %s" % newSize )
108108 return newSize
109109
110110 #############Entire Form Sizers##########
@@ -137,7 +137,7 @@ def _init_database(self, quit_if_cancel=True):
137137 db_config = frmDBConfig .frmDBConfig (None , self .service_manager , False )
138138 value = db_config .ShowModal ()
139139 if value == wx .ID_CANCEL and quit_if_cancel :
140- logger .fatal ("ODMTools is now closing because there is no database connection." )
140+ logger .fatal ("ODM2Tools is now closing because there is no database connection." )
141141 sys .exit (0 )
142142 elif not quit_if_cancel :
143143 return series_service
@@ -234,7 +234,7 @@ def _init_ctrls(self, series_service):
234234 self .menu_bar = wx .MenuBar ()
235235 self .help_menu = wx .Menu ()
236236
237- self .help_menu .Append (wx .ID_ABOUT , "&About ODMTools " )
237+ self .help_menu .Append (wx .ID_ABOUT , "&About ODM2Tools " )
238238 self .menu_bar .Append (self .help_menu , "&Help" )
239239
240240 self .SetMenuBar (self .menu_bar )
@@ -381,7 +381,7 @@ def onSetScriptTitle(self, title):
381381 def addEdit (self , event ):
382382
383383
384- with wx .BusyInfo ("Please wait for a moment while ODMTools fetches the data and stores it in our database" , parent = self ):
384+ with wx .BusyInfo ("Please wait for a moment while ODM2Tools fetches the data and stores it in our database" , parent = self ):
385385 self .scriptcreate = True
386386 isSelected , seriesID = self .pnlSelector .onReadyToEdit ()
387387 logger .info ("Beginning editing seriesID: %s" % str (seriesID ))
@@ -481,12 +481,12 @@ def loadDockingSettings(self):
481481 # test if there is a perspective to load
482482 try :
483483 # TODO Fix resource_path to appdirs
484- os .path .join (user_config_dir ("ODMTools " , "UCHIC" ), 'ODMTools .config' )
485- f = open (os .path .join (user_config_dir ("ODMTools " , "UCHIC" ), 'ODMTools .config' ), 'r' )
484+ os .path .join (user_config_dir ("ODM2Tools " , "UCHIC" ), 'ODM2Tools .config' )
485+ f = open (os .path .join (user_config_dir ("ODM2Tools " , "UCHIC" ), 'ODM2Tools .config' ), 'r' )
486486 except :
487487 # Create the file if it doesn't exist
488- open (os .path .join (user_config_dir ("ODMTools " , "UCHIC" ), 'ODMTools .config' ), 'w' ).close ()
489- f = open (os .path .join (user_config_dir ("ODMTools " , "UCHIC" ), 'ODMTools .config' ), 'r' )
488+ open (os .path .join (user_config_dir ("ODM2Tools " , "UCHIC" ), 'ODM2Tools .config' ), 'w' ).close ()
489+ f = open (os .path .join (user_config_dir ("ODM2Tools " , "UCHIC" ), 'ODM2Tools .config' ), 'r' )
490490
491491 self ._mgr .LoadPerspective (f .read (), True )
492492
@@ -507,7 +507,7 @@ def onClose(self, event):
507507 # deinitialize the bulkInsertCtrl manager
508508 self .pnlPlot .Close ()
509509 try :
510- f = open (os .path .join (user_config_dir ("ODMTools " , "UCHIC" ), 'ODMTools .config' ), 'w' )
510+ f = open (os .path .join (user_config_dir ("ODM2Tools " , "UCHIC" ), 'ODM2Tools .config' ), 'w' )
511511 f .write (self ._mgr .SavePerspective ())
512512 except :
513513 print "error saving docking data"
@@ -516,7 +516,7 @@ def onClose(self, event):
516516
517517 # Shut down processes running in background
518518 if self .taskserver .numprocesses > 0 and self .taskserver .anyAlive :
519- busy = wx .BusyInfo ("Closing ODMTools ..." , parent = self )
519+ busy = wx .BusyInfo ("Closing ODM2Tools ..." , parent = self )
520520
521521 # Terminate the processes
522522 self .taskserver .processTerminate ()
@@ -539,7 +539,7 @@ def onClose(self, event):
539539 elif isinstance (item , wx .Dialog ):
540540 item .Destroy ()
541541 item .Close ()
542- logger .info ("Closing ODMTools \n " )
542+ logger .info ("Closing ODM2Tools \n " )
543543 self .Destroy ()
544544
545545 wx .GetApp ().ExitMainLoop ()
0 commit comments