self.varWidget.old_name_tedit.setToolTip('variable name in data file')
self.varWidget.old_name_tedit.setText(old_name)
varLayout.addWidget(src_label,1,0,1,1)
...
...
@@ -201,10 +201,10 @@ class Ncml_tab(QtWidgets.QWidget):
#validate the input now
ifnotstr(src_tedit_input).startswith('http'):
ifnotos.path.isabs(src_tedit_input):#assumes local file
QtGui.QMessageBox.critical(self,str('Something is wrong').encode('utf-8'),str('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,str('Something is wrong').encode('utf-8'),str('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,str('Something is wrong').encode('utf-8'),str('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:
'''
if not str(target).startsWith(unicode('http').encode('utf-8')):
...
...
@@ -283,10 +283,10 @@ class Ncml_tab(QtWidgets.QWidget):
QtGui.QMessageBox.information(self,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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()==str("depth at T points").encode('utf-8')):
elif(self.var=="Grid"):
if(self.var_combo.currentText()=="depth at T points"):
if(self._sameValues(self.gdept)):
QtGui.QMessageBox.information(self,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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,str('For information').encode('utf-8'),str('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)