summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/ChipViewer.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove the ancient Pynche color editor (#91554)Barry Warsaw2022-04-171-130/+0
| | | Closes #91551
* Make the Pynche tool work with Python 3.Georg Brandl2010-08-021-1/+1
|
* Merged revisions 60990-61002 via svnmerge fromChristian Heimes2008-02-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r60990 | eric.smith | 2008-02-23 17:05:26 +0100 (Sat, 23 Feb 2008) | 1 line Removed duplicate Py_CHARMASK define. It's already defined in Python.h. ........ r60991 | andrew.kuchling | 2008-02-23 17:23:05 +0100 (Sat, 23 Feb 2008) | 4 lines #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances. Remove automatic handling of datetime.date and datetime.time. This breaks backward compatibility, but python-dev discussion was strongly against this automatic conversion; see the bug for a link. ........ r60994 | andrew.kuchling | 2008-02-23 17:39:43 +0100 (Sat, 23 Feb 2008) | 1 line #835521: Add index entries for various pickle-protocol methods and attributes ........ r60995 | andrew.kuchling | 2008-02-23 18:10:46 +0100 (Sat, 23 Feb 2008) | 2 lines #1433694: minidom's .normalize() failed to set .nextSibling for last element. Fix by Malte Helmert ........ r61000 | christian.heimes | 2008-02-23 18:40:11 +0100 (Sat, 23 Feb 2008) | 1 line Patch #2167 from calvin: Remove unused imports ........ r61001 | christian.heimes | 2008-02-23 18:42:31 +0100 (Sat, 23 Feb 2008) | 1 line Patch #1957: syslogmodule: Release GIL when calling syslog(3) ........ r61002 | christian.heimes | 2008-02-23 18:52:07 +0100 (Sat, 23 Feb 2008) | 2 lines Issue #2051 and patch from Alexander Belopolsky: Permission for pyc and pyo files are inherited from the py file. ........
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Implement some suggestions by Laura Creighton.Barry Warsaw2001-08-231-6/+28
| | | | | | | | | | | | | | | | | | | | | | | ChipWidget.__init__(): Added a message area just below the color name. Both the message and name widgets are now FLAT, DISABLED Entry widgets instead of Labels. This allows users to copy-n-paste the color names or color specs. Also, the contents of both widgets are now driven by StringVars. set_color(): This only sets the chip color; it does not set the name widgets. set_name(): New method which only sets the name widget contents. set_message(): New method which only sets the message widget contents. ChipViewer.update_yourself(): Set the color, name, and message for each chip as follows: the first line always contains the color spec in #rrggbb format. The second line will contain the color name, but slightly differently for each widget. For the Selected widget, if the color exactly matches the Nearest color, the name is shown, otherwise the message field will be empty. The name field of the Nearest widget will always contain the color name.
* Update a comment.Barry Warsaw2001-07-101-1/+1
|
* Lots of changes to support loading alternative color name database.Barry Warsaw1999-04-261-16/+18
| | | | | | | | | 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.
* (ChipViewer): Make frame sticky NSEW to fix geometry problem.Barry Warsaw1998-11-181-1/+1
|
* Many changes to support a second mode of operation. Pynche can now beBarry Warsaw1998-10-221-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 fileBarry Warsaw1998-10-201-0/+3
|
* Added docstringBarry Warsaw1998-10-021-0/+15
|
* Add a nice dividerBarry Warsaw1998-10-011-2/+7
|
* Groove for debuggingBarry Warsaw1998-10-011-2/+2
|
* Added an extra frame in widget heirarchy in case I want to addBarry Warsaw1998-09-291-1/+1
| | | | separators later
* Un PMW-ifiedBarry Warsaw1998-09-291-71/+84
|
* CosmeticBarry Warsaw1998-03-101-7/+7
|
* Better dimensionsBarry Warsaw1998-02-111-2/+2
|
* mered Greg's suggestions, added docstringBarry Warsaw1998-01-301-18/+26
|
* Initial revisionBarry Warsaw1998-01-291-0/+71