summaryrefslogtreecommitdiff
path: root/Connections/Shear/Finplate/finPlateMain.py
diff options
context:
space:
mode:
authordeepa-chaudhari2015-07-01 10:39:11 +0530
committerdeepa-chaudhari2015-07-01 10:39:11 +0530
commitbb16d098a89a48a7d09663df441604d88532ee36 (patch)
tree400368b8c8ce589bcc4fcfc2bd70d17dfd7b94fa /Connections/Shear/Finplate/finPlateMain.py
parent794b437131ea65e6da2eb0817f1d65e3e9fdf792 (diff)
downloadOsdagLive-bb16d098a89a48a7d09663df441604d88532ee36.tar.gz
OsdagLive-bb16d098a89a48a7d09663df441604d88532ee36.tar.bz2
OsdagLive-bb16d098a89a48a7d09663df441604d88532ee36.zip
presentation copyfinPlate_v1.0
Diffstat (limited to 'Connections/Shear/Finplate/finPlateMain.py')
-rw-r--r--Connections/Shear/Finplate/finPlateMain.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/Connections/Shear/Finplate/finPlateMain.py b/Connections/Shear/Finplate/finPlateMain.py
index f9747c3..cf9c7bb 100644
--- a/Connections/Shear/Finplate/finPlateMain.py
+++ b/Connections/Shear/Finplate/finPlateMain.py
@@ -199,8 +199,8 @@ class MainController(QtGui.QMainWindow):
dictbeamdata = self.fetchBeamPara()
beam_tw = float(dictbeamdata[QString("tw")])
plateThickness = [6,8,10,12,14,16,18,20]
- newlist = []
- for ele in plateThickness[:]:
+ newlist = ['Select plate thickness']
+ for ele in plateThickness[1:]:
item = int(ele)
if item >= beam_tw:
newlist.append(str(item))
@@ -1114,23 +1114,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_())