Commit Graph

141 Commits

Author SHA1 Message Date
Barry Warsaw ef30092207 Added most of the mechanism to change the strips from color variations
to color constants (i.e. red constant, green constant, blue
constant).  But I haven't hooked this up yet because the UI gets more
crowded and the arrows don't reflect the correct values.

Added "Go to Black" and "Go to White" buttons.
1998-12-15 01:04:38 +00:00
Barry Warsaw 6403991a9d A start on the TestModExp applet
"Author" => "Contact"
1998-12-15 01:02:51 +00:00
Barry Warsaw ce0bbd270b Added Helpwin -- help in a text widget 1998-12-03 19:50:24 +00:00
Barry Warsaw eb6b9b7ebb Untabification and other cruft 1998-12-03 19:49:45 +00:00
Barry Warsaw d0e1e51385 docstring(): Function for returning __doc__ % globals() 1998-12-03 19:49:13 +00:00
Barry Warsaw 3fe1b14c96 A little more tweakage 1998-11-18 03:45:09 +00:00
Barry Warsaw 615a66a5ef (ChipViewer): Make frame sticky NSEW to fix geometry problem. 1998-11-18 03:15:19 +00:00
Barry Warsaw 93990de252 tweak version number 1998-11-18 03:09:18 +00:00
Barry Warsaw e882b8a92e Updating 1998-11-18 00:21:09 +00:00
Barry Warsaw cf1daad891 Brief update on the slightly changed API of pyColorChooser.askcolor().
Added a To Do list.
1998-10-22 19:00:38 +00:00
Barry Warsaw 2be858230a __init__(): Removed initialcolor keyword.
show(): added color keyword here so that the selected color can be
chosen on each invocation of askcolor().

Also fixed this class, and askcolor() so that the same Chooser
instance can be re-used instead of creating a new one on each
invocation of askcolor().

Added a module function save() which can be used to explicitly save
the option database in ~/.pynche.  This does not happen automatically
when used as a modal.
1998-10-22 18:51:22 +00:00
Barry Warsaw f72d580d5e sticky should be NSEW to fix pixel weirdness at right edge 1998-10-22 18:48:45 +00:00
Barry Warsaw 4ab5ae2ad0 Error message goes to stderr
canceled() takes an optional flag so that the canceled flag can be
cleared.
1998-10-22 18:48:01 +00:00
Barry Warsaw d9e5214c26 beep => bell
deiconify(): New method
1998-10-22 18:46:28 +00:00
Barry Warsaw 877d299292 Fixed running of standalone via command line. Also, only do save from
main() so that run-as-modal doesn't automatically save database.
1998-10-22 18:45:52 +00:00
Barry Warsaw 3dd1c39c80 Describe all the new features 1998-10-22 04:14:24 +00:00
Barry Warsaw a20f6af862 Chooser.__init__(): Added `wantspec' keyword to conform exactly to
tkColorChooser.askcolor() interface (i.e. don't return a color name
even if there is an exact match).
1998-10-22 03:44:52 +00:00
Barry Warsaw ca07ba00ac Many changes to support a second mode of operation. Pynche can now be
run either as a standalone application (by running pynche or
pynche.pyw), or as a modal dialog inside another application.  This
can be done by importing pyColorChooser and running askcolor().  The
API for this is the same as the tkColorChooser.askcolor() API, namely:

    When `Okay' is hit, askcolor() returns ((r, g, b), "name").  When
    `Cancel' is hit, askcolor() returns (None, None).

Note the following differences:

    1. pyColorChooser.askcolor() takes an optional keyword `master'
       which if set tells Pynche to run as a modal dialog.  `master'
       is a Tkinter parent window.  Without the `master' keyword
       Pynche runs standalone.

    2. in pyColorChooser.askcolor() will return a Tk/X11 color name as
       "name" if there is an exact match, otherwise it will return a
       color spec, e.g. "#rrggbb".  tkColorChooser can't return a
       color name.

There are also some UI differences when running standalone vs. modal.
When modal, there is no "File" menu, but instead there are "Okay" and
"Cancel" buttons.

The implementation of all this is a bit of a hack, but it seems to
work moderately well.  I'm not guaranteeing the pyColorChooser.Chooser
class has the same semantics as the tkColorChooser.Chooser class.
1998-10-22 03:25:59 +00:00
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