Barry Warsaw
8a09e1ccda
Saving/Restoring state into ~/.pynche file
1998-10-20 20:45:46 +00:00
Barry Warsaw
f3dcafecd3
The driver script on Unix is `pynche'; for Windows `pynche.pyw'
1998-10-16 22:29:18 +00:00
Barry Warsaw
840a84d37a
Updated __main__ unit test
1998-10-15 02:18:08 +00:00
Barry Warsaw
bac609a69e
Updated about text
1998-10-07 03:40:29 +00:00
Barry Warsaw
0926deacd5
Moved the main pynche.py file to Main.py. Added minimal driver
...
scripts pynche.py and pynche.pyw for Unix and Windows startup
respectively. Document the .pyw file in the README.
1998-10-07 03:36:58 +00:00
Barry Warsaw
c958043233
Better layout of options menu and inc/dec buttons
1998-10-07 03:19:33 +00:00
Barry Warsaw
8934af00d8
Fixes for some type-in strangeness
1998-10-07 02:44:17 +00:00
Barry Warsaw
cd63dc9f3d
Add a note about the console window
1998-10-06 23:09:49 +00:00
Barry Warsaw
9cdd44f714
Never mind
1998-10-06 23:08:02 +00:00
Barry Warsaw
1c792d5e10
Add link for Windows
1998-10-06 23:06:24 +00:00
Barry Warsaw
84f52e0a16
RightARrow._create(): justify=RIGHT on the text object
1998-10-06 23:04:55 +00:00
Barry Warsaw
e55055d0d4
A readme
1998-10-06 23:03:22 +00:00
Barry Warsaw
da7502e8ad
Add a SELECTION to the pre-inserted text
1998-10-06 21:40:22 +00:00
Barry Warsaw
3886e3aebb
Copyright CNRI
1998-10-06 20:49:20 +00:00
Barry Warsaw
6bfd655c2a
Added the rgb.txt file from X11R6.4, including the license
1998-10-06 20:44:14 +00:00
Barry Warsaw
4f632357d4
Initial revision
1998-10-06 20:42:05 +00:00
Barry Warsaw
e7f4a47bbf
Better initial color choosing
1998-10-06 19:50:33 +00:00
Barry Warsaw
45c8d34216
Better quitting
1998-10-06 19:48:35 +00:00
Barry Warsaw
3836503acd
Converted to newstyle menubars
1998-10-06 19:39:34 +00:00
Barry Warsaw
56af4448e1
Update main window when Update on Click is turned on
1998-10-06 18:56:31 +00:00
Barry Warsaw
ad3a67cc84
Added version number in the About window
1998-10-06 18:52:59 +00:00
Barry Warsaw
3a476e9b35
Track color changes: disable buttons and their labels when turned off
1998-10-06 18:46:57 +00:00
Barry Warsaw
332aa4cf0a
Color Variation Ties => Move Sliders
...
Moved buttons to the top
1998-10-06 18:29:22 +00:00
Barry Warsaw
c4a9b3d923
main(): Better recovery when bogus color given on command line
1998-10-06 18:13:20 +00:00
Barry Warsaw
b7b1cf0088
rrggbb_to_triplet(): When color doesn't start with `#' raise a
...
BadColor exception.
1998-10-06 18:10:59 +00:00
Barry Warsaw
5b67839ca3
Added a hex button so arrow numbers can display in decimal or hex.
1998-10-06 16:13:35 +00:00
Barry Warsaw
c2d8f573eb
__togglehex(): Simplify
1998-10-06 16:08:39 +00:00
Barry Warsaw
73290dff30
hexp() => hexp_var()
1998-10-06 15:50:36 +00:00
Barry Warsaw
6831c30143
hexp(): New function
1998-10-06 15:49:19 +00:00
Barry Warsaw
a398924c6a
__normalize(): Preserve the location of the icursor and restore it so
...
that Left/Right arrow keys and C-a C-e all work.
1998-10-06 15:47:45 +00:00
Barry Warsaw
ae4ad6e454
Changed the grey/magenta/cyan/yellow label text slightly.
...
Changed Color Ties label to Color Variation Ties
1998-10-06 15:41:31 +00:00
Barry Warsaw
14e2cafe21
usage(): Print msg at end of docstring
...
main(): Fixed logic error and reporting when no colordb was found.
Given by GvR.
1998-10-06 15:21:04 +00:00
Barry Warsaw
7c51a9a80b
Title
1998-10-05 21:31:37 +00:00
Barry Warsaw
c078b03d7f
Finished implementation + docstring
1998-10-05 21:29:04 +00:00
Barry Warsaw
964fbbbc61
Added Alt-w bindings
1998-10-05 21:15:08 +00:00
Barry Warsaw
9044b8e5e3
Added details window
1998-10-05 21:14:46 +00:00
Barry Warsaw
cd09867c57
current_rgb(): New method
1998-10-05 21:14:12 +00:00
Barry Warsaw
3d314390ab
*** empty log message ***
1998-10-05 19:12:32 +00:00
Barry Warsaw
69a4ab5a04
Docstring
1998-10-02 16:27:40 +00:00
Barry Warsaw
4638c5b7f3
Docstring
1998-10-02 16:20:14 +00:00
Barry Warsaw
eb61fbdba8
Docstring
1998-10-02 16:06:27 +00:00
Barry Warsaw
bd36d6eccd
Added the ListViewer
1998-10-02 16:05:48 +00:00
Barry Warsaw
a9053f65de
Updated docstring.
1998-10-02 16:01:42 +00:00
Barry Warsaw
9f3ea211dd
all_names(): => unique_names()
...
aliases_of(): New method
1998-10-02 15:59:20 +00:00
Barry Warsaw
ddb9fc1ebd
Added docstring
1998-10-02 15:58:50 +00:00
Barry Warsaw
b44056ec94
Functionality complete
1998-10-02 15:52:10 +00:00
Barry Warsaw
8be2594a24
all_names(): Return just the unique names of rgb colors
1998-10-02 14:43:30 +00:00
Barry Warsaw
b55c4ad58d
Got click on working. Dragging is disabled for now
1998-10-02 14:34:03 +00:00
Barry Warsaw
399f10cd66
Lots of good UI working, but not yet update-while-dragging
1998-10-01 22:03:25 +00:00
Barry Warsaw
46670a2d42
*** empty log message ***
1998-10-01 21:40:48 +00:00
Barry Warsaw
4ab5d85efa
Change some init order
1998-10-01 16:47:06 +00:00
Barry Warsaw
a7ba45b7b6
update_views_current(): New method
1998-10-01 16:46:43 +00:00
Barry Warsaw
86daeb7909
Added View button and popup of text widget
1998-10-01 16:46:16 +00:00
Barry Warsaw
f9c6ddc40a
*** empty log message ***
1998-10-01 16:45:32 +00:00
Barry Warsaw
231c8c0895
Gridify this widget
1998-10-01 14:26:57 +00:00
Barry Warsaw
b26743ac48
Make sure the menubar is stretched
1998-10-01 14:26:26 +00:00
Barry Warsaw
65f0b6be47
Add a nice divider
1998-10-01 14:26:04 +00:00
Barry Warsaw
85e6965071
Fixed toggle b/w hex and decimal
1998-10-01 13:41:05 +00:00
Barry Warsaw
d344165f48
Added options to visible window
1998-10-01 03:08:07 +00:00
Barry Warsaw
aa40b556fd
Groove for debugging
1998-10-01 03:07:20 +00:00
Barry Warsaw
03e8a31eb3
Get rid of Edit menu
1998-10-01 03:06:04 +00:00
Barry Warsaw
0fa6e4b421
Added options to visible window
1998-10-01 02:57:05 +00:00
Barry Warsaw
fda3aceb71
Added interface to get/set colordb
1998-09-29 20:04:19 +00:00
Barry Warsaw
a9b45580a3
Removed old cruft, added raw about dialog
1998-09-29 20:03:53 +00:00
Barry Warsaw
7a13418e12
Changed interface for nearest() method to take individual red, green,
...
blue values instead of tuple
1998-09-29 20:03:15 +00:00
Barry Warsaw
420201972e
Got updating with Return/Tab working
1998-09-29 20:02:27 +00:00
Barry Warsaw
885b371e33
Un PMW-ified
1998-09-29 19:51:18 +00:00
Barry Warsaw
d7d4725dba
Added an extra frame in widget heirarchy in case I want to add
...
separators later
1998-09-29 17:36:43 +00:00
Barry Warsaw
dc492e6738
Un PMW-ified
1998-09-29 15:44:20 +00:00
Barry Warsaw
63c9e9851e
Rework startup
1998-09-28 23:41:53 +00:00
Barry Warsaw
1ac18cd326
simplify
1998-09-28 23:41:12 +00:00
Barry Warsaw
0e3e699178
triplet_to_brightness(): New function
1998-09-28 23:39:18 +00:00
Barry Warsaw
a69c1ba0aa
De PMW-ify
1998-09-28 23:38:44 +00:00
Barry Warsaw
26f4b5dfe4
Fixed the brightness calculation
1998-09-28 22:52:02 +00:00
Barry Warsaw
0dc9c92b10
Updated to new post-PMW framework. Moved generators to here and added
...
the StripViewer class.
1998-09-28 22:42:44 +00:00
Barry Warsaw
5177c48411
formatting
1998-09-28 21:01:55 +00:00
Barry Warsaw
6a3ea7468e
Un PMW-ified
1998-09-28 20:58:06 +00:00
Barry Warsaw
04c7886764
Un PMW-ified
1998-09-28 16:28:04 +00:00
Barry Warsaw
987fb9225f
Initial revision
1998-09-28 15:59:21 +00:00
Barry Warsaw
a5a018fbd4
Fixed unit test
1998-09-25 22:51:36 +00:00
Barry Warsaw
a341fc3bf7
update while dragging defaults to 0
1998-03-17 16:19:05 +00:00
Barry Warsaw
ee6d8a5b45
No update while dragging still tracks the arrows
1998-03-17 15:59:26 +00:00
Barry Warsaw
abae22fa5e
Get rid of Entrywidget
1998-03-16 23:35:11 +00:00
Barry Warsaw
627857e957
Add option for no updates on typing
1998-03-16 23:09:04 +00:00
Barry Warsaw
70787ed8ae
Add option for no updates on dragging
1998-03-16 23:08:53 +00:00
Barry Warsaw
a114eb5bd3
Use the new PyncheOptions widget
1998-03-16 23:08:35 +00:00
Barry Warsaw
5bfac8d7fd
Integrate with OptionsWindow... need to hook into Tab key
1998-03-10 00:17:30 +00:00
Barry Warsaw
f67575d69d
Integrate with OptionsWindow... not sure it should be modal
1998-03-10 00:17:01 +00:00
Barry Warsaw
31ac518dd7
Cosmetic
1998-03-10 00:16:09 +00:00
Barry Warsaw
2e7a32046b
rrggbb_to_triplet(), triplet_to_rrggbb(): Improvements given by GvR
1998-02-18 17:01:12 +00:00
Barry Warsaw
4435d5a8d8
Very modest improvements
1998-02-18 17:00:24 +00:00
Barry Warsaw
49c5b0d1be
Get rid of commented out, slower versions
1998-02-18 16:22:52 +00:00
Barry Warsaw
4c2fab51ed
Implementation using TCLPROC loaded into the Tcl interpreter
1998-02-18 16:22:22 +00:00
Barry Warsaw
d7300f8f56
__modified(): Make sure `rgbs' is a tuple
1998-02-18 00:06:20 +00:00
Barry Warsaw
f67a50c2e1
Several optimizations:
...
self.__chips now contains the list of rgbtuple values for the
chips named i - 1 (Tkinter counts from 1, we count from zero).
The chip number was just the index + 1. This means color lookup
need not do an itemcget(), it can just index into __chips.
instead of calling __canvas.itemconfigure(), we glom up a huge Tcl
script and call tk.eval() directly. Actually we do many appends
to a Python list, then string.join() them together into one huge
string. This reduces the overhead of Tkinter but making one fast
call to Tcl.
1998-02-18 00:05:59 +00:00
Barry Warsaw
8d3e5ee552
Cache conversions from triplets to rrggbb's and vice versa. Wasteful
...
on space, but improves performance. Also use map to calculate
triplet_to_pmwrgb().
1998-02-18 00:02:26 +00:00
Barry Warsaw
552ac1795a
Added about dialog
1998-02-17 22:25:23 +00:00
Barry Warsaw
bc6893062a
Added chip selection stuff, strip label
1998-02-17 03:09:40 +00:00
Barry Warsaw
93737b2da8
Added method to set selected color to nearest.
...
Collapsed `Options' group into `Current Color' group
Set delegate of reds, greens, blues
1998-02-17 03:09:19 +00:00
Barry Warsaw
2e965add30
__validate(): test for None-age, not not-ness
1998-02-13 21:29:13 +00:00