QtGui.QMessageBox.information(self,unicode('Something is wrong').encode('utf-8'),unicode('Not all the variables under the tracer tab have been defined!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'Something is wrong','Not all the variables under the tracer tab have been defined!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
ifself.ice_tab.isEnabled()isTrue:
ifself.ice_tab.isEnabled()isTrue:
...
@@ -210,7 +210,7 @@ class Ncml_generator(QtGui.QDialog):
...
@@ -210,7 +210,7 @@ class Ncml_generator(QtGui.QDialog):
QtGui.QMessageBox.information(self,unicode('Something is wrong').encode('utf-8'),unicode('Not all the variables under the ice tab have been defined!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'Something is wrong','Not all the variables under the ice tab have been defined!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
ifself.dynamic_tab.isEnabled()isTrue:
ifself.dynamic_tab.isEnabled()isTrue:
ifself.dynamic_tab.vozocrtx.src!=""and \
ifself.dynamic_tab.vozocrtx.src!=""and \
...
@@ -218,7 +218,7 @@ class Ncml_generator(QtGui.QDialog):
...
@@ -218,7 +218,7 @@ class Ncml_generator(QtGui.QDialog):
QtGui.QMessageBox.information(self,unicode('Something is wrong').encode('utf-8'),unicode('Not all the variables under the dynamics tab have been defined!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'Something is wrong','Not all the variables under the dynamics tab have been defined!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
ifself.grid_tab.isEnabled()isTrue:
ifself.grid_tab.isEnabled()isTrue:
ifself.grid_tab.gdept.src!=""and \
ifself.grid_tab.gdept.src!=""and \
...
@@ -229,14 +229,14 @@ class Ncml_generator(QtGui.QDialog):
...
@@ -229,14 +229,14 @@ class Ncml_generator(QtGui.QDialog):
QtGui.QMessageBox.information(self,unicode('Something is wrong').encode('utf-8'),unicode('Not all the variables under the grid tab have been defined!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'Something is wrong','Not all the variables under the grid tab have been defined!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
self.varWidget.old_name_tedit.setToolTip(unicode('variable name in data file').encode('utf-8'))
self.varWidget.old_name_tedit.setToolTip('variable name in data file')
self.varWidget.old_name_tedit.setText(old_name)
self.varWidget.old_name_tedit.setText(old_name)
varLayout.addWidget(src_label,1,0,1,1)
varLayout.addWidget(src_label,1,0,1,1)
...
@@ -201,10 +201,10 @@ class Ncml_tab(QtGui.QWidget):
...
@@ -201,10 +201,10 @@ class Ncml_tab(QtGui.QWidget):
#validate the input now
#validate the input now
ifnotstr(src_tedit_input).startswith('http'):
ifnotstr(src_tedit_input).startswith('http'):
ifnotos.path.isabs(src_tedit_input):#assumes local file
ifnotos.path.isabs(src_tedit_input):#assumes local file
QtGui.QMessageBox.critical(self,unicode('Something is wrong').encode('utf-8'),unicode('source directory must be an absolute path!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.critical(self,'Something is wrong','source directory must be an absolute path!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.critical(self,unicode('Something is wrong').encode('utf-8'),unicode('source directory does not exist!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.critical(self,'Something is wrong','source directory does not exist!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.critical(self,unicode('Something is wrong').encode('utf-8'),unicode('source directory and existing variable name cannot be blank!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.critical(self,'Something is wrong','source directory and existing variable name cannot be blank!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
else:
else:
'''
'''
if not str(target).startsWith(unicode('http').encode('utf-8')):
if not str(target).startsWith(unicode('http').encode('utf-8')):
...
@@ -283,10 +283,10 @@ class Ncml_tab(QtGui.QWidget):
...
@@ -283,10 +283,10 @@ class Ncml_tab(QtGui.QWidget):
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
if(self.var_combo.currentText()==unicode("depth at T points").encode('utf-8')):
if(self.var_combo.currentText()=="depth at T points"):
if(self._sameValues(self.gdept)):
if(self._sameValues(self.gdept)):
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)
QtGui.QMessageBox.information(self,unicode('For information').encode('utf-8'),unicode('No changes have been made!').encode('utf-8'),QtGui.QMessageBox.Ok,QtGui.QMessageBox.Ok)
QtWidgets.QMessageBox.information(self,'For information','No changes have been made!',QtWidgets.QMessageBox.Ok,QtWidgets.QMessageBox.Ok)