PDA

View Full Version : gcolor2


malte
December 11th, 2005, 07:19 PM
A simple color chooser. It's in dapper already, that should be trivial backporting :)

benplaut
December 11th, 2005, 08:07 PM
ditto... it looks useful

sjoeboo
December 12th, 2005, 02:45 PM
jsut built the backport fine, will notify list.

jdong
December 12th, 2005, 05:53 PM
Approved and sent off.

ardchoille
December 12th, 2005, 06:01 PM
In the meantime, you can do this:

1. 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()



2. 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.

benplaut
December 13th, 2005, 09:31 PM
In the meantime, you can do this:

1. 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()



2. 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