Commit Graph

16 Commits

Author SHA1 Message Date
Georg Brandl bf76ce168c Make the Pynche tool work with Python 3. 2010-08-02 22:08:58 +00:00
Barry Warsaw 95cf9d9f4e __populate(): Use augmented assignments. 2001-07-10 21:39:41 +00:00
Barry Warsaw 2720d380e9 update_yourself(): Removed unused local variable reported by
PyChecker.
2001-04-18 03:53:29 +00:00
Barry Warsaw f3ebf90d2c Add a module global variable ADDTOVIEW to conform to dynamic viewer
lookup protocol.
1999-04-27 18:54:12 +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 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 45c8d34216 Better quitting 1998-10-06 19:48:35 +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 7c51a9a80b Title 1998-10-05 21:31:37 +00:00
Barry Warsaw 964fbbbc61 Added Alt-w bindings 1998-10-05 21:15:08 +00:00
Barry Warsaw eb61fbdba8 Docstring 1998-10-02 16:06:27 +00:00
Barry Warsaw b44056ec94 Functionality complete 1998-10-02 15:52:10 +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