Skip to content

Commit

Permalink
implemented getprocessinformation at sysutils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
korcankaraokcu committed Jan 25, 2016
1 parent 29581c7 commit 1fd01e1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 16 deletions.
58 changes: 44 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion PINCE.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def pushButton_Open_onclick(self):
if curItem==None:
QMessageBox.information(self, "Error","Please select a process first")
else:
currentpid=curItem.text()
currentpid=int(curItem.text())
print(currentpid)
self.close()

Expand Down
7 changes: 6 additions & 1 deletion SysUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ def getprocesslist(self):
processlist=[]
for p in psutil.process_iter():
processlist.append(p.as_dict(attrs=['pid','username','name']))
return processlist
return processlist

#returns the information about the given process, int=pid
def getprocessinformation(int):
p = psutil.Process(int)
return p

0 comments on commit 1fd01e1

Please sign in to comment.