@@ -86,7 +86,7 @@ def _obtainScreenResolution(self):
86
86
87
87
'''
88
88
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"
90
90
% wx.GetDisplaySize())
91
91
print "minimumAllowedsize: ", minimumAllowedSize, "display: ", wx.GetDisplaySize()
92
92
sys.exit(0)
@@ -104,7 +104,7 @@ def _obtainScreenResolution(self):
104
104
elif screenWidth < defaultWidth :
105
105
newSize = wx .Size (defaultHeight , screenWidth / 1.5 )
106
106
107
- logger .debug ("ODMTools Window Size: %s" % newSize )
107
+ logger .debug ("ODM2Tools Window Size: %s" % newSize )
108
108
return newSize
109
109
110
110
#############Entire Form Sizers##########
@@ -137,7 +137,7 @@ def _init_database(self, quit_if_cancel=True):
137
137
db_config = frmDBConfig .frmDBConfig (None , self .service_manager , False )
138
138
value = db_config .ShowModal ()
139
139
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." )
141
141
sys .exit (0 )
142
142
elif not quit_if_cancel :
143
143
return series_service
@@ -234,7 +234,7 @@ def _init_ctrls(self, series_service):
234
234
self .menu_bar = wx .MenuBar ()
235
235
self .help_menu = wx .Menu ()
236
236
237
- self .help_menu .Append (wx .ID_ABOUT , "&About ODMTools " )
237
+ self .help_menu .Append (wx .ID_ABOUT , "&About ODM2Tools " )
238
238
self .menu_bar .Append (self .help_menu , "&Help" )
239
239
240
240
self .SetMenuBar (self .menu_bar )
@@ -381,7 +381,7 @@ def onSetScriptTitle(self, title):
381
381
def addEdit (self , event ):
382
382
383
383
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 ):
385
385
self .scriptcreate = True
386
386
isSelected , seriesID = self .pnlSelector .onReadyToEdit ()
387
387
logger .info ("Beginning editing seriesID: %s" % str (seriesID ))
@@ -481,12 +481,12 @@ def loadDockingSettings(self):
481
481
# test if there is a perspective to load
482
482
try :
483
483
# 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' )
486
486
except :
487
487
# 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' )
490
490
491
491
self ._mgr .LoadPerspective (f .read (), True )
492
492
@@ -507,7 +507,7 @@ def onClose(self, event):
507
507
# deinitialize the bulkInsertCtrl manager
508
508
self .pnlPlot .Close ()
509
509
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' )
511
511
f .write (self ._mgr .SavePerspective ())
512
512
except :
513
513
print "error saving docking data"
@@ -516,7 +516,7 @@ def onClose(self, event):
516
516
517
517
# Shut down processes running in background
518
518
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 )
520
520
521
521
# Terminate the processes
522
522
self .taskserver .processTerminate ()
@@ -539,7 +539,7 @@ def onClose(self, event):
539
539
elif isinstance (item , wx .Dialog ):
540
540
item .Destroy ()
541
541
item .Close ()
542
- logger .info ("Closing ODMTools \n " )
542
+ logger .info ("Closing ODM2Tools \n " )
543
543
self .Destroy ()
544
544
545
545
wx .GetApp ().ExitMainLoop ()
0 commit comments