Tenma DC 72-2540 graphical interface

I was planning to write a post of how to write a simple GTK application indicator. But there’s a really good explanation already from
candidtim that you can follow. It is actually very well explained.

What I’ll do instead is just drop here an update to the Tenma DC 72-2540 command line tool that can be found in the tenma-serial github repo. It is the gtkIndicator.py script, that more or less looks like this:

And note that you can create a small .desktop file, so your desktop environment knows about it 😀

vim ~/.local/share/applications/TenmaDcPower.desktop

[Desktop Entry]
Name=Tenma DC power supply
Comment=
Exec=/usr/bin/tenmaSer/gtkIndicator.py
Icon=/usr/bin/tenmaSer/logo.png
Terminal=false
Type=Application
StartupNotify=true

Some Links

Advertisements

Leave a comment

Filed under tools

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s