diff options
author | anjalijaiswal08 | 2019-06-19 17:54:55 +0530 |
---|---|---|
committer | anjalijaiswal08 | 2019-06-21 15:56:02 +0530 |
commit | 1d9967fa80981e856825a5d5910902245f2390ba (patch) | |
tree | 24d38eadde66ee25a5da2db56135285e1a5ce1e1 /src/frontEnd/ProjectExplorer.py | |
parent | fd265d087ff6dc7a09df400b165043e61bb7d0c0 (diff) | |
download | eSim-1d9967fa80981e856825a5d5910902245f2390ba.tar.gz eSim-1d9967fa80981e856825a5d5910902245f2390ba.tar.bz2 eSim-1d9967fa80981e856825a5d5910902245f2390ba.zip |
Issue #87 solved: Documentation of src/frontend
Diffstat (limited to 'src/frontEnd/ProjectExplorer.py')
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index 8d0ef4ec..8304ac20 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -8,19 +8,20 @@ from configuration.Appconfig import Appconfig class ProjectExplorer(QtGui.QWidget): """ This class contains function: - a)One work as a constructor(__init__). - b)For saving data. - c)for renaming project. - d)for refreshing project. - e)for removing project. - f) for saving data. + + - One work as a constructor(__init__). + - For saving data. + - for renaming project. + - for refreshing project. + - for removing project. + - for saving data. """ def __init__(self): """ This method is doing following tasks: - a)Working as a constructor for class ProjectExplorer. - b)view of project explorer area. + - Working as a constructor for class ProjectExplorer. + - view of project explorer area. """ QtGui.QWidget.__init__(self) self.obj_appconfig = Appconfig() @@ -55,7 +56,7 @@ class ProjectExplorer(QtGui.QWidget): pathlist = parents.split(os.sep) parentnode = QtGui.QTreeWidgetItem( self.treewidget, [pathlist[-1], parents] - ) + ) for files in children: QtGui.QTreeWidgetItem( parentnode, [files, os.path.join(parents, files)]) @@ -172,7 +173,7 @@ class ProjectExplorer(QtGui.QWidget): def save_data(self): """ This function first opens file in write-mode, when write - operation is performed it closes that file and then window. + operation is performed it closes that file and then it closes window. """ self.fopen = open(self.filePath, 'w') self.fopen.write(self.text.toPlainText()) @@ -225,7 +226,6 @@ class ProjectExplorer(QtGui.QWidget): json.dump(self.obj_appconfig.project_explorer, open(self.obj_appconfig.dictPath, 'w')) - # """ def renameProject(self): indexItem = self.treewidget.currentIndex() baseFileName = str(indexItem.data()) @@ -273,4 +273,3 @@ class ProjectExplorer(QtGui.QWidget): self.obj_appconfig.project_explorer.items() ): self.addTreeNode(parent, children) - # """ |