diff options
author | fahim | 2015-07-31 16:32:08 +0530 |
---|---|---|
committer | fahim | 2015-07-31 16:32:08 +0530 |
commit | a9e808fd75d09978d159678cf9ae39e38d8dbe37 (patch) | |
tree | 2637a7c44b46940af0a3e5ad325d88d2486bab68 /src/frontEnd/DockArea.py | |
parent | a240b67affd00ac162329f736a430f35cc38baba (diff) | |
download | eSim-a9e808fd75d09978d159678cf9ae39e38d8dbe37.tar.gz eSim-a9e808fd75d09978d159678cf9ae39e38d8dbe37.tar.bz2 eSim-a9e808fd75d09978d159678cf9ae39e38d8dbe37.zip |
Subject: Added module for user manual
Description: Added module for user manual
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rw-r--r-- | src/frontEnd/DockArea.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py index 1c155787..65296525 100644 --- a/src/frontEnd/DockArea.py +++ b/src/frontEnd/DockArea.py @@ -6,6 +6,7 @@ from modelEditor.ModelEditor import ModelEditorclass from subcircuit.Subcircuit import Subcircuit from kicadtoNgspice.KicadtoNgspice import MainWindow from browser.Welcome import Welcome +from browser.UserManual import UserManual import os dockList = ['Welcome'] @@ -238,4 +239,31 @@ class DockArea(QtGui.QMainWindow): dock['Subcircuit-'+str(count)].setFocus() dock['Subcircuit-'+str(count)].raise_() + count = count + 1 + + def usermanual(self): + """ + This function creates a widget for different subcircuit options + """ + + global count + self.usermanualWidget=QtGui.QWidget() + self.usermanualLayout=QtGui.QVBoxLayout() + self.usermanualLayout.addWidget(UserManual()) + + self.usermanualWidget.setLayout(self.usermanualLayout) + dock['User Manual-'+str(count)] = QtGui.QDockWidget('User Manual-'+str(count)) + dock['User Manual-'+str(count)].setWidget(self.usermanualWidget) + self.addDockWidget(QtCore.Qt.TopDockWidgetArea, dock['User Manual-'+str(count)]) + self.tabifyDockWidget(dock['Welcome'],dock['User Manual-'+str(count)]) + + #CSS + dock['User Manual-'+str(count)].setStyleSheet(" \ + .QWidget { border-radius: 15px; border: 1px solid gray; padding: 5px; width: 200px; height: 150px; } \ + ") + + dock['User Manual-'+str(count)].setVisible(True) + dock['User Manual-'+str(count)].setFocus() + dock['User Manual-'+str(count)].raise_() + count = count + 1
\ No newline at end of file |