diff options
author | deepa-chaudhari | 2015-06-21 22:57:43 +0530 |
---|---|---|
committer | deepa-chaudhari | 2015-06-21 22:57:43 +0530 |
commit | c8edec5808b4bda6f5754a6f7dd7d203cb62cfd7 (patch) | |
tree | 38953af6fb05d82c70fe9af18b1ba6c274178f48 /Connections/Shear/Finplate/finPlateMain.py | |
parent | aae0a7a8d0f691c3b4408494f663daf1dc42e535 (diff) | |
download | OsdagLive-c8edec5808b4bda6f5754a6f7dd7d203cb62cfd7.tar.gz OsdagLive-c8edec5808b4bda6f5754a6f7dd7d203cb62cfd7.tar.bz2 OsdagLive-c8edec5808b4bda6f5754a6f7dd7d203cb62cfd7.zip |
save design report
Diffstat (limited to 'Connections/Shear/Finplate/finPlateMain.py')
-rw-r--r-- | Connections/Shear/Finplate/finPlateMain.py | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/Connections/Shear/Finplate/finPlateMain.py b/Connections/Shear/Finplate/finPlateMain.py index 8b3d232..2f4211b 100644 --- a/Connections/Shear/Finplate/finPlateMain.py +++ b/Connections/Shear/Finplate/finPlateMain.py @@ -411,7 +411,9 @@ class MainController(QtGui.QMainWindow): fileName = QtGui.QFileDialog.getSaveFileName(self,"Save File As","/home/deepa/SaveDesign","Text File (*.txt)") f = open(fileName,'w') yaml.dump(newDict,f,allow_unicode=True, default_flow_style=False) - return self.save_file(fileName+".txt") + + #return self.save_file(fileName+".txt") + QtGui.QMessageBox.about(self,'Information',"File saved") def resetbtn_clicked(self): @@ -795,7 +797,7 @@ class MainController(QtGui.QMainWindow): def call_3DModel(self,flag): - + self.ui.btnSvgSave.setEnabled(True) if self.ui.btn3D.isEnabled(): self.ui.chkBxBeam.setChecked(QtCore.Qt.Unchecked) self.ui.chkBxCol.setChecked(QtCore.Qt.Unchecked) @@ -1111,23 +1113,23 @@ def launchFinPlateController(osdagMainWindow): -if __name__ == '__main__': - #launchFinPlateController(None) - - # linking css to log file to display colour logs. - set_osdaglogger() - rawLogger = logging.getLogger("raw") - rawLogger.setLevel(logging.INFO) - fh = logging.FileHandler("fin.log", mode="w") - formatter = logging.Formatter('''%(message)s''') - fh.setFormatter(formatter) - rawLogger.addHandler(fh) - rawLogger.info('''<link rel="stylesheet" type="text/css" href="log.css"/>''') - - app = QtGui.QApplication(sys.argv) - window = MainController() - window.show() - sys.exit(app.exec_()) +# if __name__ == '__main__': +# #launchFinPlateController(None) +# +# # linking css to log file to display colour logs. +# set_osdaglogger() +# rawLogger = logging.getLogger("raw") +# rawLogger.setLevel(logging.INFO) +# fh = logging.FileHandler("fin.log", mode="w") +# formatter = logging.Formatter('''%(message)s''') +# fh.setFormatter(formatter) +# rawLogger.addHandler(fh) +# rawLogger.info('''<link rel="stylesheet" type="text/css" href="log.css"/>''') +# +# app = QtGui.QApplication(sys.argv) +# window = MainController() +# window.show() +# sys.exit(app.exec_()) |