From 9469147242465102059e0703b9532e17d63983bc Mon Sep 17 00:00:00 2001 From: fahim Date: Thu, 14 May 2015 19:21:26 +0530 Subject: Subject: openNgspice function completed Description: openNgspice function completed --- src/frontEnd/DockArea.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/frontEnd/DockArea.py') diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index e9755302..70af5384 100644 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -1,7 +1,7 @@ from PyQt4 import QtGui,QtCore from ngspiceSimulation.pythonPlotting import plotWindow -#from configuration.Appconfig import Appconfig - +from configuration.Appconfig import Appconfig +import os dockList = ['Blank'] count = 1 @@ -12,7 +12,8 @@ class DockArea(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) - + self.obj_appconfig = Appconfig() + for dockName in dockList: dock[dockName] = QtGui.QDockWidget(dockName) dock[dockName].setWidget(QtGui.QTextEdit()) @@ -51,14 +52,16 @@ class DockArea(QtGui.QMainWindow): """ This function create widget for Library Editor """ - global count - self.plottingWidget = QtGui.QWidget() - #self.plottingArea = QtGui.QTextEdit() + self.projDir = self.obj_appconfig.current_project["ProjectName"] + self.projName = os.path.basename(self.projDir) + self.project = os.path.join(self.projDir,self.projName) + global count + self.plottingWidget = QtGui.QWidget() + self.plottingLayout = QtGui.QVBoxLayout() - #self.plottingLayout.addWidget(self.plottingArea) - self.plottingLayout.addWidget(plotWindow()) + self.plottingLayout.addWidget(plotWindow(self.project,self.projName)) #Adding to main Layout self.plottingWidget.setLayout(self.plottingLayout) -- cgit