diff options
author | Fahim | 2015-06-24 11:26:33 +0530 |
---|---|---|
committer | Fahim | 2015-06-24 11:26:33 +0530 |
commit | f7cf0e9a67627ed6ce73892a75445ba84e6b9b21 (patch) | |
tree | 3d4eb335a02347d289dad226d5b2ca202da9edad /src/frontEnd/DockArea.py | |
parent | f47a744451fe634efb487023f073321ceed4664c (diff) | |
parent | 6af9f606a72d3c4399873840de3c683d423df5a6 (diff) | |
download | eSim-f7cf0e9a67627ed6ce73892a75445ba84e6b9b21.tar.gz eSim-f7cf0e9a67627ed6ce73892a75445ba84e6b9b21.tar.bz2 eSim-f7cf0e9a67627ed6ce73892a75445ba84e6b9b21.zip |
Merge pull request #34 from FOSSEE-Manipal/master
Added subcircuit module and storing previous values for same
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rw-r--r-- | src/frontEnd/DockArea.py | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index e700dbd6..e87fea99 100644 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -3,6 +3,7 @@ from ngspiceSimulation.pythonPlotting import plotWindow from ngspiceSimulation.NgspiceWidget import NgspiceWidget from configuration.Appconfig import Appconfig from modelEditor.ModelEditor import ModelEditorclass +from subcircuit.Subcircuit import Subcircuit import os dockList = ['Welcome'] @@ -153,9 +154,29 @@ class DockArea(QtGui.QMainWindow): count = count + 1 + def subcircuiteditor(self): + """ + This function creates a widget for different subcircuit options + """ + global count + self.subcktWidget=QtGui.QWidget() + self.subcktLayout=QtGui.QVBoxLayout() + self.subcktLayout.addWidget(Subcircuit()) + + self.subcktWidget.setLayout(self.subcktLayout) + dock['Subcircuit-'+str(count)] = QtGui.QDockWidget('Subcircuit-'+str(count)) + dock['Subcircuit-'+str(count)].setWidget(self.subcktWidget) + self.addDockWidget(QtCore.Qt.TopDockWidgetArea, dock['Subcircuit-'+str(count)]) + self.tabifyDockWidget(dock['Welcome'],dock['Subcircuit-'+str(count)]) + """ + #CSS + dock['Plotting-'+str(count)].setStyleSheet(" \ + QWidget { border-radius: 15px; border: 1px solid gray; padding: 5px; width: 200px; height: 150px; } \ + ") + """ + dock['Subcircuit-'+str(count)].setVisible(True) + dock['Subcircuit-'+str(count)].setFocus() + dock['Subcircuit-'+str(count)].raise_() - - - -
\ No newline at end of file + count = count + 1
\ No newline at end of file |