diff options
-rw-r--r-- | Bin_Phase_env.py | 5 | ||||
-rw-r--r-- | OMChem/Flowsheet.py | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Bin_Phase_env.py b/Bin_Phase_env.py index 31fd766..a892d78 100644 --- a/Bin_Phase_env.py +++ b/Bin_Phase_env.py @@ -242,6 +242,7 @@ class Bin_Phase_env(QWidget,ui_dialog): view_box = plt.plotItem.vb + self.tool_tip = "" def pressEvent(evt): @@ -262,10 +263,12 @@ class Bin_Phase_env(QWidget,ui_dialog): if colour.red()==255 or colour.blue()==255: self.lineEdit_x.setText(str(round(mousepoint.x(),3))) self.lineEdit_y.setText(str(round(mousepoint.y(),3))) + self.tool_tip = str(round(mousepoint.x(),3)) + ", " + str(round(mousepoint.y(),3)) QApplication.setOverrideCursor(QCursor(QtCore.Qt.CrossCursor)) else: self.lineEdit_x.setText("") self.lineEdit_y.setText("") + self.tool_tip = "" QApplication.setOverrideCursor(QCursor(QtCore.Qt.ArrowCursor)) @@ -278,6 +281,8 @@ class Bin_Phase_env(QWidget,ui_dialog): self.lineEdit_x.setText("") self.lineEdit_y.setText("") QApplication.setOverrideCursor(QCursor(QtCore.Qt.ArrowCursor)) + else: + i.setToolTip(self.tool_tip) # print(items) diff --git a/OMChem/Flowsheet.py b/OMChem/Flowsheet.py index a113d66..78552ae 100644 --- a/OMChem/Flowsheet.py +++ b/OMChem/Flowsheet.py @@ -42,7 +42,7 @@ class Flowsheet(): for i in unitOpr.extra: unitOpr.OM_data_init += ('model '+i+str(unitOpr.counter)+'\n') unitOpr.OM_data_init += ('extends Simulator.Unit_Operations.'+i+';\n') - unitOpr.OM_data_init += ('extends Simulator.Files.Thermodynamic_Packages.'+unitOpr.thermoPack+';\n') + unitOpr.OM_data_init += ('extends Simulator.Files.Thermodynamic_Packages.'+unitOpr.thermoPackage+';\n') unitOpr.OM_data_init += ('end '+i+str(unitOpr.counter)+';\n') unitOpr.OM_data_init += i+str(unitOpr.counter) + ' ' + unitOpr.name + '(NOC = ' + str(len(self.compounds)) @@ -52,7 +52,7 @@ class Flowsheet(): if i!=(len(unitOpr.extra)-1): unitOpr.OM_data_init += ('model '+unitOpr.ForNaming[i]+str(unitOpr.counter)+'\n') unitOpr.OM_data_init += ('extends Simulator.Unit_Operations.'+unitOpr.extra[i]+';\n') - unitOpr.OM_data_init += ('extends Simulator.Files.Thermodynamic_Packages.'+unitOpr.thermoPack+';\n') + unitOpr.OM_data_init += ('extends Simulator.Files.Thermodynamic_Packages.'+unitOpr.thermoPackage+';\n') unitOpr.OM_data_init += ('end '+unitOpr.ForNaming[i]+str(unitOpr.counter)+';\n') else: unitOpr.OM_data_init += ('model '+unitOpr.ForNaming[i]+str(unitOpr.counter)+'\n') |