Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a typo, update (only one) style improvement, whitespace | Barry Warsaw | 2002-10-21 | 1 | -5/+5 |
| | | | | normalization. | ||||
* | __init__(), save_views(): Catch ValueError along with IOError and | Barry Warsaw | 2001-07-10 | 1 | -6/+7 |
| | | | | | EOFError so any failures in unmarshalling are just ignored. Use print>> instead of sys.stderr.write(). | ||||
* | Added docstring describing Viewer interface. | Barry Warsaw | 1999-04-27 | 1 | -0/+33 |
| | | | | | set_colordb(): Call Viewers' colordb_changed() method if they have them. Notifies them of changes to the color name database. | ||||
* | Lots of changes to support loading alternative color name database. | Barry Warsaw | 1999-04-26 | 1 | -2/+8 |
| | | | | | | | | | 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. | ||||
* | Error message goes to stderr | Barry Warsaw | 1998-10-22 | 1 | -4/+8 |
| | | | | | canceled() takes an optional flag so that the canceled flag can be cleared. | ||||
* | Many changes to support a second mode of operation. Pynche can now be | Barry Warsaw | 1998-10-22 | 1 | -3/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Saving/Restoring state into ~/.pynche file | Barry Warsaw | 1998-10-20 | 1 | -2/+43 |
| | |||||
* | current_rgb(): New method | Barry Warsaw | 1998-10-05 | 1 | -0/+3 |
| | |||||
* | Docstring | Barry Warsaw | 1998-10-02 | 1 | -0/+14 |
| | |||||
* | update_views_current(): New method | Barry Warsaw | 1998-10-01 | 1 | -0/+9 |
| | |||||
* | Added interface to get/set colordb | Barry Warsaw | 1998-09-29 | 1 | -1/+5 |
| | |||||
* | simplify | Barry Warsaw | 1998-09-28 | 1 | -9/+3 |
| | |||||
* | Initial revision | Barry Warsaw | 1998-09-28 | 1 | -0/+16 |