Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 135177e9b0e0aed19064661d1bf886a0898ef935 @weavejester committed Apr 20, 2011
Showing with 38 additions and 0 deletions.
  1. +8 −0 README.md
  2. +30 −0 src/indicator.py
@@ -0,0 +1,8 @@
+# uBitcoin
+
+uBitcoin is a [Bitcoin][1] GUI for [Ubuntu][2].
+
+Or at least it will be, once a working version is released.
+
+[1]: http://www.bitcoin.org
+[2]: http://www.ubuntu.com
@@ -0,0 +1,30 @@
+import gobject
+import gtk
+import appindicator
+
+def append_quit_item(menu):
+ quit_item = gtk.MenuItem("Quit uBitcoin")
+ menu.append(quit_item)
+ quit_item.connect("activate", exit)
+ quit_item.show()
+
+def indicator_menu():
+ "The menu on the indicator applet."
+ menu = gtk.Menu()
+ append_quit_item(menu)
+ return menu
+
+def indicator():
+ "The main indicator applet."
+ indicator = appindicator.Indicator(
+ "example-simple-client",
+ "indicator-messages",
+ appindicator.CATEGORY_APPLICATION_STATUS)
+
+ indicator.set_status(appindicator.STATUS_ACTIVE)
+ indicator.set_attention_icon("indicator-messages-new")
+ indicator.set_menu(indicator_menu())
+ gtk.main()
+
+if __name__ == "__main__":
+ indicator()

0 comments on commit 135177e

Please sign in to comment.