summaryrefslogtreecommitdiff
path: root/src/frontEnd/DockArea.py
diff options
context:
space:
mode:
authoranjalijaiswal082019-05-30 15:36:29 +0530
committernilshah982019-06-13 12:15:50 +0530
commitd0bb982da7dc3454ebc1e97d698ecff28d12fcb6 (patch)
tree7e7ef2b04109fdc917c3434df1cc844ac442e794 /src/frontEnd/DockArea.py
parenta0f738ba15264b69d9d51755569408bdd8e383b5 (diff)
downloadeSim-d0bb982da7dc3454ebc1e97d698ecff28d12fcb6.tar.gz
eSim-d0bb982da7dc3454ebc1e97d698ecff28d12fcb6.tar.bz2
eSim-d0bb982da7dc3454ebc1e97d698ecff28d12fcb6.zip
browser, frontEnd changes
Diffstat (limited to 'src/frontEnd/DockArea.py')
-rw-r--r--src/frontEnd/DockArea.py66
1 files changed, 10 insertions, 56 deletions
diff --git a/src/frontEnd/DockArea.py b/src/frontEnd/DockArea.py
index b44a87e6..2c605272 100644
--- a/src/frontEnd/DockArea.py
+++ b/src/frontEnd/DockArea.py
@@ -14,9 +14,9 @@ dockList = ['Welcome']
count = 1
dock = {}
-
+#
class DockArea(QtGui.QMainWindow):
-
+ """ """
def __init__(self):
QtGui.QMainWindow.__init__(self)
self.obj_appconfig = Appconfig()
@@ -39,32 +39,10 @@ class DockArea(QtGui.QMainWindow):
# self.tabifyDockWidget(dock['Notes'],dock['Blank'])
self.show()
-
- '''
- def __init__(self):
- QtGui.QMainWindow.__init__(self)
- self.obj_appconfig = Appconfig()
-
- for dockName in dockList:
- dock[dockName] = QtGui.QDockWidget(dockName)
- self.welcome = QtGui.QTextEdit()
- self.welcome.setReadOnly(True)
- dock[dockName].setWidget(self.welcome)
- #CSS
- dock[dockName].setStyleSheet(" \
- QWidget { border-radius: 15px; border: 1px solid gray;\
- padding: 5px; width: 200px; height: 150px; } \
- ")
- self.addDockWidget(QtCore.Qt.TopDockWidgetArea, dock[dockName])
- #self.tabifyDockWidget(dock['Notes'],dock['Blank'])
- self.show()
- '''
-
+ # This function create widget for Library Editor
def createTestEditor(self):
- """
- This function create widget for Library Editor
- """
+ """ """
global count
self.testWidget = QtGui.QWidget()
@@ -81,32 +59,19 @@ class DockArea(QtGui.QMainWindow):
self.tabifyDockWidget(
dock['Welcome'], dock['Tips-' + str(count)])
- """
- #CSS
- dock['Tips-'+str(count)].setStyleSheet(" \
- .QWidget { border-radius: 15px; border: 1px solid gray; padding: 5px;\
- width: 200px; height: 150px; } \
- ")
- """
-
dock['Tips-' + str(count)].setVisible(True)
dock['Tips-' + str(count)].setFocus()
- """
- dock['Tips-'+str(count)].setStyleSheet(" \
- :hover { background-color: yellow; } \
- ")
- """
+
dock['Tips-' + str(count)].raise_()
temp = self.obj_appconfig.current_project['ProjectName']
self.obj_appconfig.dock_dict[temp].append(
dock['Tips-' + str(count)])
count = count + 1
-
+
+ # This function create widget for interactive PythonPlotting
def plottingEditor(self):
- """
- This function create widget for interactive PythonPlotting
- """
+ """ """
self.projDir = self.obj_appconfig.current_project["ProjectName"]
self.projName = os.path.basename(self.projDir)
# self.project = os.path.join(self.projDir,self.projName)
@@ -126,13 +91,6 @@ class DockArea(QtGui.QMainWindow):
dock['Plotting-' + str(count)])
self.tabifyDockWidget(dock['Welcome'], dock['Plotting-' + str(count)])
- """
- #CSS
- dock['Plotting-'+str(count)].setStyleSheet(" \
- .QWidget { border-radius: 15px; border: 1px solid gray; padding: 5px;\
- width: 200px; height: 150px; } \
- ")
- """
dock['Plotting-' + str(count)].setVisible(True)
dock['Plotting-' + str(count)].setFocus()
dock['Plotting-' + str(count)].raise_()
@@ -143,9 +101,7 @@ class DockArea(QtGui.QMainWindow):
count = count + 1
def ngspiceEditor(self, projDir):
- """
- This function creates widget for NgSpice window
- """
+ """This function creates widget for NgSpice window."""
self.projDir = projDir
self.projName = os.path.basename(self.projDir)
@@ -314,9 +270,7 @@ class DockArea(QtGui.QMainWindow):
count = count + 1
def modelicaEditor(self, projDir):
- """
- This function sets up the UI for ngspice to modelica conversion
- """
+ """This function sets up the UI for ngspice to modelica conversion."""
global count
self.modelicaWidget = QtGui.QWidget()