#=============================================================================== # # FILE: Appconfig.py # # USAGE: --- # # DESCRIPTION: This define all configuration used in Application. # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Fahim Khan, fahim.elex@gmail.com # ORGANIZATION: ecSim team at FOSSEE, IIT Bombay. # CREATED: Wednesday 04 February 2015 # REVISION: --- #=============================================================================== from PyQt4 import QtGui import os class Appconfig(QtGui.QWidget): """ All configuration goes here """ #Home directory home = os.path.join(os.path.expanduser("~"),"ecSim-Workspace") default_workspace = {"workspace":home} #Current Project detail current_project = {"ProjectName":None} #Workspace detail workspace_text = '''ecSim stores your project in a folder called a workspace. You can choose a different workspace folder to use for this session.''' def __init__(self): super(Appconfig, self).__init__() #Application Details self._APPLICATION = 'ecSim' self._VERSION = 'v1.1' self._AUTHOR = 'Fahim' #Application geometry setting self._app_xpos = 100 self._app_ypos = 100 self._app_width = 600 self._app_heigth = 400