Skip to content

Commit

Permalink
Updated the name to gtkIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
kxtells committed Nov 29, 2017
1 parent fec2363 commit b29dd1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
@@ -1,3 +1,10 @@
# Tenma DC power supply controllers

Provides two basic controllers (tested on Linux) for a TENMA DC power supply via serial interface.

* tenmaControl (command line utility)
* gtkIndicator (GTK indicator to sit on tray)

# tenmaControl

## What is this?
Expand Down Expand Up @@ -53,3 +60,9 @@ For example: 2.2 Amperes 5V:
### Print everything

python tenmaControl.py -c 2200 -v 5000 --save 4 --verbose --debug /dev/ttyUSB0

# gtkIndicator

A very simple GTK indicator to control a tenma DC power supply from a graphical desktop. Provides ON, OFF and RESET facilities. Simply start it with:

./gtkIndicator.py
4 changes: 3 additions & 1 deletion unityIndicator.py → gtkIndicator.py
@@ -1,3 +1,5 @@
#!/usr/bin/python

import gi

gi.require_version('Gtk', '3.0')
Expand Down Expand Up @@ -78,7 +80,7 @@ def portSelected(self, source):
notify.Notification.new("<b>CONNECTED TO</b>", ver, None).show()
self.setItemSetStatus(True)

self.item_connectedPort.set_label(self.serialPort)
self.item_connectedPort.set_label(self.serialPort)

def build_serial_submenu(self):
serialMenu = gtk.Menu()
Expand Down

0 comments on commit b29dd1a

Please sign in to comment.