Commit Graph

24 Commits

Author SHA1 Message Date
Barry Warsaw cc8a60cdf6 Bump the version to 1.1 2001-04-18 03:49:00 +00:00
Barry Warsaw b61a28e240 add a comment 1999-04-27 18:43:47 +00:00
Barry Warsaw d515a7ea3d Set the version number to 1.0 -- I think it's stable enough 1999-04-26 23:18:07 +00:00
Barry Warsaw 0604d72318 Lots of changes to support loading alternative color name database.
You can switch database by just loading the new one; the list window
and nearest colors adapt to the new database.

Some reorganizing of code.  Also, the name of the database file is
stored in the ~/.pynche pickle.  If it can't be loaded, fallbacks are
used.
1999-04-26 23:17:16 +00:00
Barry Warsaw c2aadcd96a Added /usr/lib/X11/rgb.txt in front of X/rgb.txt for Linuxers 1999-04-23 16:24:00 +00:00
Barry Warsaw 6403991a9d A start on the TestModExp applet
"Author" => "Contact"
1998-12-15 01:02:51 +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 93990de252 tweak version number 1998-11-18 03:09:18 +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 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 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 6bfd655c2a Added the rgb.txt file from X11R6.4, including the license 1998-10-06 20:44:14 +00:00
Barry Warsaw e7f4a47bbf Better initial color choosing 1998-10-06 19:50:33 +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 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 4ab5d85efa Change some init order 1998-10-01 16:47:06 +00:00
Barry Warsaw 63c9e9851e Rework startup 1998-09-28 23:41:53 +00:00
Barry Warsaw 04c7886764 Un PMW-ified 1998-09-28 16:28:04 +00:00
Barry Warsaw f7e4793660 fixed initial color 1998-02-12 19:53:01 +00:00
Barry Warsaw eab81a9247 Better conversion of command line given initial color 1998-02-11 18:56:13 +00:00
Barry Warsaw f7c1e5a6a3 Moved toplevel widget to PyncheWidget.py 1998-01-31 23:39:28 +00:00
Barry Warsaw 516f18993f Initial revision 1998-01-27 03:19:00 +00:00