summaryrefslogtreecommitdiff
path: root/src/configuration
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration')
-rw-r--r--src/configuration/Appconfig.py2
-rw-r--r--src/configuration/Appconfig.pycbin1288 -> 1307 bytes
-rw-r--r--src/configuration/test.py61
3 files changed, 1 insertions, 62 deletions
diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py
index 811029ca..550670cf 100644
--- a/src/configuration/Appconfig.py
+++ b/src/configuration/Appconfig.py
@@ -27,7 +27,7 @@ class Appconfig(QtGui.QWidget):
All configuration goes here
"""
#Home directory
- home = os.path.expanduser("~")+"/ecSim-Workspace"
+ home = os.path.join(os.path.expanduser("~"),"ecSim-Workspace")
default_workspace = {"workspace":home}
#Current Project detail
current_project = {"ProjectName":"None"}
diff --git a/src/configuration/Appconfig.pyc b/src/configuration/Appconfig.pyc
index 7d8c70a6..b68d43c9 100644
--- a/src/configuration/Appconfig.pyc
+++ b/src/configuration/Appconfig.pyc
Binary files differ
diff --git a/src/configuration/test.py b/src/configuration/test.py
deleted file mode 100644
index 4dd9f39d..00000000
--- a/src/configuration/test.py
+++ /dev/null
@@ -1,61 +0,0 @@
-'''
-Created on 04-Feb-2015
-
-@author: fahim
-'''
-import sys
-from PyQt4 import QtGui, QtCore
-
-
-class MainWindow(QtGui.QMainWindow):
-
- def __init__(self, *args):
- apply(QtGui.QMainWindow.__init__, (self, ) + args)
- self.setCaption("Adding and deleting widgets")
- self.setName("main window")
- self.mainWidget=QtGui.QWidget(self)
- self.setCentralWidget(self.mainWidget)
- self.mainLayout=QtGui.QVBoxLayout(self.mainWidget, 5, 5, "main")
- self.buttonLayout=QtGui.QHBoxLayout(self.mainLayout, 5, "button")
- self.widgetLayout=QtGui.QVBoxLayout(self.mainLayout, 5, "widget")
-
- self.bnAdd=QtGui.QPushButton("Add widget", self.mainWidget, "add")
- self.connect(self.bnAdd, QtCore.SIGNAL("clicked()"),
- self.slotAddWidget)
-
- self.bnRemove=QtGui.QPushButton("Remove widget",
- self.mainWidget, "remove")
- self.connect(self.bnRemove, QtCore.SIGNAL("clicked()"),
- self.slotRemoveWidget)
-
- self.buttonLayout.addWidget(self.bnAdd)
- self.buttonLayout.addWidget(self.bnRemove)
-
- self.buttons = []
-
- def slotAddWidget(self):
- widget=QtGui.QPushButton("test", self.mainWidget)
- self.widgetLayout.addWidget(widget)
- self.buttons.append(widget)
- widget.show()
-
- def slotRemoveWidget(self):
- self.widgetLayout.parent().removeChild(self.widgetLayout)
- self.widgetLayout=QtGui.QVBoxLayout(self.mainLayout, 5, "widget")
- self.buttons[-1].parent().removeChild(self.buttons[-1])
- del self.buttons[-1:]
-
-
-def main(args):
- app=QtGui.QApplication(args)
- win=MainWindow()
- win.show()
- app.connect(app, QtCore.SIGNAL("lastWindowClosed()")
- , app
- ,QtCore.SLOT("quit()")
- )
- app.exec_loop()
-
-if __name__=="__main__":
- main(sys.argv)
-