You are not logged in.

#1 2009-04-27 18:13:44

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

pychrom - a simple color selection and conversion tool for the tray

Update
I ended up adding some features to this and have now packaged it and given it a project page. The screenshots should give you and idea of what it can do now. The info page has more details: http://xyne.archlinux.ca/projects/pychrom

main
pychrom_01_small.png

color names combobox
pychrom_02_small.png

zoom window
pychrom_03_small.png

Last edited by Xyne (2010-04-19 04:02:10)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2009-04-28 05:49:18

s26c.sayan
Member
From: Kolkata, India
Registered: 2007-02-07
Posts: 176
Website

Re: pychrom - a simple color selection and conversion tool for the tray

Really nice & useful little app!
Thanks!


March Linux : An Arch Linux "distrolet" that I am trying to develop (March = My Arch!)
Please take a look......:)

Offline

#3 2009-04-28 06:42:56

praavDa
Member
Registered: 2008-08-21
Posts: 34

Re: pychrom - a simple color selection and conversion tool for the tray

I was looking for something like that - thank You for sharing Xyne. Using this one and http://www.colr.org really speeds up my work with choosing the right colors.

I own You one:)


gvim -c "exec \"normal itYNQ#v'Z#ABG#GUR#BAYL#BAR\"|%s/#/ /g|normal ggVGg?ggVG~"

Offline

#4 2009-05-06 10:01:40

Chokkan
Member
Registered: 2009-04-06
Posts: 129

Re: pychrom - a simple color selection and conversion tool for the tray

It's simply great!! Thanks for this.


< Daenyth> tomkx: my girlfriend is linux
< Daenyth> srsly
< Daenyth> she loves the way I «make install»
< Daenyth> all her /dev entries are mode 7 for me

Offline

#5 2009-05-06 15:04:36

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: pychrom - a simple color selection and conversion tool for the tray

You should abuse your power and add this to [community] .


English is not my native language .

Offline

#6 2009-05-06 19:00:10

markp1989
Member
Registered: 2008-10-05
Posts: 431

Re: pychrom - a simple color selection and conversion tool for the tray

very cool app big_smile


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#7 2009-05-06 19:28:53

smartboyathome
Member
From: $HOME
Registered: 2007-12-23
Posts: 334
Website

Re: pychrom - a simple color selection and conversion tool for the tray

Is there a way to turn off the tray for those of us that don't have one (ie, e17 users).

Offline

#8 2009-05-06 22:36:26

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: pychrom - a simple color selection and conversion tool for the tray

smartboyathome: all this does is open/close the gnome color chooser, which you can get standalone by installing gcolor2.

Offline

#9 2009-05-06 22:39:10

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: pychrom - a simple color selection and conversion tool for the tray

smartboyathome wrote:

Is there a way to turn off the tray for those of us that don't have one (ie, e17 users).

point taken, but you do know that e17 has a systray nowadays?

Offline

#10 2009-05-07 03:03:13

smartboyathome
Member
From: $HOME
Registered: 2007-12-23
Posts: 334
Website

Re: pychrom - a simple color selection and conversion tool for the tray

pressh wrote:
smartboyathome wrote:

Is there a way to turn off the tray for those of us that don't have one (ie, e17 users).

point taken, but you do know that e17 has a systray nowadays?

I know that, it just doesn't work for me. Besides, I prefer to use Iiirk. wink

SamC wrote:

smartboyathome: all this does is open/close the gnome color chooser, which you can get standalone by installing gcolor2.

Ah, thanks!

Last edited by smartboyathome (2009-05-07 03:03:54)

Offline

#11 2010-01-11 07:47:54

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

Re: pychrom - a simple color selection and conversion tool for the tray

This is a great tool just what i need. Only thing that would make it perfect would be rgb + cmyk values. Great tool thanks.

Offline

#12 2010-01-11 14:42:58

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pychrom - a simple color selection and conversion tool for the tray

@passbe
I have hsv and rgb fields here above the hex field so I'm not sure what you mean by "rgb" values.
I don't know of any cmyk color selection widgets but if you find one, let me know. Pycrhom is just a standard gtk color selection dialogue attached to a tray icon and the code is very simple and suits my needs perfectly. It would not be that difficult to implement something more robust (e.g. emulate the gimp color selection dialogue) but that's way beyond the scope of this.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#13 2010-01-11 20:19:23

fogobogo
Member
Registered: 2008-08-24
Posts: 83

Re: pychrom - a simple color selection and conversion tool for the tray

this.... is very cool.
one little thing though Xyne, could you add at least a short comment what the thing is about to your pychrom? wink

Offline

#14 2010-01-11 23:03:34

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

Re: pychrom - a simple color selection and conversion tool for the tray

@Xyne
my appologies you do have rgb in that selection. No thats perfect as a web developer i need one of those two values, then i can work with it. Thanks again.

Offline

#15 2010-01-11 23:52:55

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: pychrom - a simple color selection and conversion tool for the tray

Xyne, how do you come up with all of these cool little ideas?


neutral

Offline

#16 2010-01-12 05:50:41

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pychrom - a simple color selection and conversion tool for the tray

@fogobogo
If you mean a short description inside the script, then I've done that. I'll probably package this soon too.

@sand_man
I tend to get sidetracked when coding and end up trying different things just to see if they would work. smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#17 2010-04-15 18:11:35

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pychrom - a simple color selection and conversion tool for the tray

*bump*

I started by porting some Perl functions to Python and ended up adding a quite a few things:

* CMYK values
* color names
* terminal colors
* palette functions

I also dissected the color selection widget and reorganized it. smile


You can now install it from my repo or from the AUR as well.

Last edited by Xyne (2010-04-15 18:12:48)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#18 2010-04-17 12:10:48

qubodup
Member
Registered: 2008-01-19
Posts: 66

Re: pychrom - a simple color selection and conversion tool for the tray

Thanks! I'll be using this from now on smile

Offline

#19 2010-04-17 22:15:36

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: pychrom - a simple color selection and conversion tool for the tray

One feature I would love to see is a magnification window. I find it really helps select *that* pixel.

Otherwise, excellent job. Very nice program

Last edited by alterecco (2010-04-17 22:15:56)

Offline

#20 2010-04-17 23:30:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pychrom - a simple color selection and conversion tool for the tray

A magnification window would be useful but it's somewhat beyond the current scope. I'll look into it and decide whether to implement it once I have a better idea how.

If you haven't discovered it yet, you can turn on "auto-add" and then drag the eye-dropper across your target. You should then be able to select the correct color from the palette.


*after browsing code for a couple of minutes*

I think I know how to do it and it's simpler than I expected. I've bookmarked a few pages so that I'll remember to look into it tomorrow.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#21 2010-04-19 04:08:43

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pychrom - a simple color selection and conversion tool for the tray

bumpity bump

I've added a zoom window.

Set the zoom level to 1 then zoom in on the zoom window itself for fun side-effects.


Xyne wrote:

I think I know how to do it and it's simpler than I expected.

The basic concept was. Actually figuring out how to set up the events and capture them outside of the window involved several facepalms (e.g. mixing up gtk.Window with gtk.gdk.Window, gtk.* with gtk.*_MASK).

Last edited by Xyne (2010-04-19 04:13:34)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#22 2010-04-19 13:05:52

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: pychrom - a simple color selection and conversion tool for the tray

Works great. Thanks for that Xyne

Offline

#23 2010-04-19 18:23:59

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: pychrom - a simple color selection and conversion tool for the tray

Many thanks for this tool - it's a stable member of my tray apps in tint2 smile

[NAGGING_THE_AUTHOR_MODE_ON] Just a couple of thoughts: I start pychrom in autostart.sh (openbox) and it opens with the full window - I'd expect it starts in the tray. In the same way, when I click the X in a window (the close button, I mean) if the  program has systray support I'd expect it to "close in the tray" and not to exit. [NAGGING_THE_AUTHOR_MODE_OFF]

Offline

#24 2010-04-19 19:04:16

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pychrom - a simple color selection and conversion tool for the tray

I've add a "--tray" option to minimize to the tray at startup. Note that it doesn't check whether the tray actually exists first (due to race conditions with embedding the icon).

Closing the window will now minimize to the tray if the tray is detected. I hadn't added this before because I didn't want to make it exclusively a tray app (I hadn't looked into tray detection... have to add that to unibrow and pystopwatch too).

Last edited by Xyne (2010-04-19 19:45:56)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#25 2010-04-19 20:03:54

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: pychrom - a simple color selection and conversion tool for the tray

updating... and thanks again ^^

Offline

Board footer

Powered by FluxBB