A simple color chooser. It's in dapper already, that should be trivial backporting :)
gcolor2
Archived thread 102284 from Closed Requests. Markdown source: Closed_Requests/thread_102284_gcolor2.md
ditto... it looks useful
jsut built the backport fine, will notify list.
Approved and sent off.
In the meantime, you can do this:
- create a new file, copy the below code into it and give it a filename of color-picker.py or something.
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
class ColorPicker:
def close(self, attributes):
gtk.main_quit()
def __init__(self):
self.window = gtk.ColorSelectionDialog('Select Color')
self.window.ok_button.connect("clicked", self.close)
self.window.cancel_button.connect("clicked", self.close)
self.window.show()
def main(self):
gtk.main()
prog = ColorPicker()
prog.main()
- run the file in a term (or create a new menu item for it) with:
python color-picker.py
It's a simple python app and I know it isn't the same as gcolor2, but it will suffice until gcolor2 is available with sudo apt-get install.
In the meantime, you can do this:
- create a new file, copy the below code into it and give it a filename of color-picker.py or something.
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
class ColorPicker:
def close(self, attributes):
gtk.main_quit()
def __init__(self):
self.window = gtk.ColorSelectionDialog('Select Color')
self.window.ok_button.connect("clicked", self.close)
self.window.cancel_button.connect("clicked", self.close)
self.window.show()
def main(self):
gtk.main()
prog = ColorPicker()
prog.main()
- run the file in a term (or create a new menu item for it) with:
python color-picker.py
It's a simple python app and I know it isn't the same as gcolor2, but it will suffice until gcolor2 is available with sudo apt-get install.
very nice... no longer will i have to use the gnome-panel background color selection :p