summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-28 19:41:22 +0000
committerracarr <racarr>2007-01-28 19:41:22 +0000
commite1f4abfd9e1972759e49979bf83d7ed52dc73fae (patch)
treebf45942839c6bd8577339ec943510fafb77c4a05
parentaf08c0fb67cce05101ee8fbe47f553780cc278f1 (diff)
downloadberyl-desktop-manager-e1f4abfd9e1972759e49979bf83d7ed52dc73fae.tar.gz
beryl-desktop-manager-e1f4abfd9e1972759e49979bf83d7ed52dc73fae.tar.bz2
Add simple UI to write gkeyfile so people can test without having to manually edit file yes it's a 10 minute hack no I don't care if you have any problems with it
-rw-r--r--src/tempUI.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tempUI.py b/src/tempUI.py
new file mode 100644
index 0000000..dc68372
--- /dev/null
+++ b/src/tempUI.py
@@ -0,0 +1,30 @@
+import pygtk,gtk
+import gtk.gdk
+import os
+gdk = gtk.gdk
+
+home=os.getenv("HOME")
+entry = (gtk.Entry(),gtk.Entry(),gtk.Entry(),gtk.Entry(),gtk.Entry(),gtk.Entry(),gtk.Entry(),gtk.Entry())
+
+def writeFile(widget,data=None):
+ f= open(home+"/.bdm/wallpaper.list",'w')
+ f.write("[wallpaper]\n")
+ for i in (0,1,2,3,4,5,6,7):
+ if entry[i].get_text():
+ f.write(str(i+1)+"="+entry[i].get_text()+"\n")
+ f.close()
+
+
+
+if __name__=="__main__":
+ window = gtk.Window(gtk.WINDOW_TOPLEVEL)
+ window.set_title("BDM Desktop Selector")
+ vbox = gtk.VBox()
+ vbox.show()
+ window.show()
+ window.add(vbox)
+ for i in (0,1,2,3,4,5,6,7):
+ entry[i].show()
+ vbox.pack_start(entry[i])
+ entry[i].connect("changed",writeFile,i)
+ gtk.main()