Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to create a system monitor quite similar to gnome-system-monitor in ubuntu using python.

I have used quickly application for the GUI and now i want to show the cpu history as shown by the system monitor , I want to know where I can get the source code to the system monitor and how to use it in my application.

share|improve this question
add comment

2 Answers

The source code for the System Monitor can be acquired by opening a terminal and entering:

apt-get source gnome-system-monitor

Unfortunately it is written in C. You cannot extend it with Python and Quickly.

share|improve this answer
add comment

A good reference for that would be the CPUMeter screenlet. You'd have to handle saving the data though.

sudo apt-get install screenlets-pack-all

On my system it's located here:
/usr/share/screenlets/screenlets-pack-all/CPUMeter/CPUMeterScreenlet.py

Tested on 12.04

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.