summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
Commit message (Collapse)AuthorAgeFilesLines
* Ported from 2.4 branch:Barry Warsaw2006-01-011-2/+2
| | | | Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.
* Fix all wrong instances of "it's".Georg Brandl2005-07-222-2/+2
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-183-6/+6
|
* Patch #812378: Normalize white space.Martin v. Löwis2003-10-242-114/+114
|
* Fix for SF bug #780996, crash when no .pynche file exists and -dBarry Warsaw2003-09-031-2/+4
| | | | | | | | option is not given. If dbfile isn't given and can't be retrieved from the optionsdb, just initialize it to the first element in RGB_TXT. Backport candidate.
* FILETYPES: Newer XFree86 rgb.txt files use the key Xorg instead ofBarry Warsaw2002-10-211-67/+68
| | | | XConsortium. Now we can recognize these files!
* Some fixes based on feedback from Hans Petter Langtangen.Barry Warsaw2002-10-211-41/+44
| | | | | | | | | | | | | | build(): Fix the logic here for calculating fallbacks if the dbfile isn't parseable. main(): Fix the semantics for -d/--database; this should override any database value found in the .pynche file. Update some comments, and author contact info. Bump to v1.4 Whitespace normalization.
* Fix a typo, update (only one) style improvement, whitespaceBarry Warsaw2002-10-211-5/+5
| | | | normalization.
* Bump to version 1.3. Also document the new behavior of the chip widgets.Barry Warsaw2001-08-231-8/+17
|
* Bump to version 1.3Barry Warsaw2001-08-231-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.
* Change the way hex type-ins are displayed. The old way was way tooBarry Warsaw2001-07-101-48/+53
| | | | | | | | fragile. Now the leading "0x" on hex numbers are displayed as labels and the type-in entry fields just accept the hex digits. Be sure to strip off the "0x" string when displaying hex values too. Also, de-string-module-ification, and other Python 2.x improvements.
* __init__(), save_views(): Catch ValueError along with IOError andBarry Warsaw2001-07-101-6/+7
| | | | | EOFError so any failures in unmarshalling are just ignored. Use print>> instead of sys.stderr.write().
* Update a comment.Barry Warsaw2001-07-101-2/+4
|
* __init__(): Use augmented assignments.Barry Warsaw2001-07-101-3/+5
|
* De-string-module-ification.Barry Warsaw2001-07-102-10/+11
|
* __version__: Bump to 1.2Barry Warsaw2001-07-101-6/+8
| | | | De-string-module-ification.
* __populate(): Use augmented assignments.Barry Warsaw2001-07-101-1/+1
|
* __delta(): Use augmented assignments.Barry Warsaw2001-07-101-6/+6
|
* De-string-module-ification and other Python 2.x improvements.Barry Warsaw2001-07-101-29/+18
|
* Update a comment.Barry Warsaw2001-07-101-1/+1
|
* Updated documentation, and bump the version number to 1.2.Barry Warsaw2001-07-101-10/+25
|
* update_yourself(): Removed unused local variable reported byBarry Warsaw2001-04-181-1/+0
| | | | PyChecker.
* __init__(): Removed unused local variable reported by PyChecker.Barry Warsaw2001-04-181-1/+0
|
* StripWidget.__init__(), update_yourself(): Removed some unused localBarry Warsaw2001-04-181-21/+20
| | | | | | | | variables reported by PyChecker. __togglegentype(): PyChecker accurately reported that the variable __gentypevar was unused -- actually this whole method is currently unused so comment it out.
* Helpwin.__init__(): Removed an unused local variable (via import)Barry Warsaw2001-04-181-1/+1
| | | | reported by PyChecker.
* Bump the version to 1.1Barry Warsaw2001-04-181-1/+1
|
* There have been a few new Python releases <wink> in the 2 years sinceBarry Warsaw2001-04-181-10/+7
| | | | | this tool was last touched! Update some of the introductory material and bump the version to 1.1.
* Special case around some of the nastier annoyances with the type-inBarry Warsaw2001-02-011-6/+25
| | | | | | | fields. You can now backspace out the 0 in 0x0, and you can clear the field when in decimal mode. There are still some oddities about typing into these fields, but it should be much less annoying. The real solution is to ditch the update-while-typing "feature".
* Move the "from Tkinter import *" out of the method and into the moduleBarry Warsaw2001-02-011-1/+2
| | | | | scope (still inside the __name__=='__main__' guard). Necessitated by recent addition of nested scopes.
* make_view_popups(): Catch import error which can occur if a viewer isBarry Warsaw1999-07-061-1/+7
| | | | | | dynamically imported when Pynche is running via askcolor out of a package. If the ImportError occurs, try again, prepending the package name and digging out the module.
* Use the much nicer tkFileDialog for loading color name database filesBarry Warsaw1999-04-271-5/+10
| | | | (thanks Fred!)
* Document that for askcolor(), databasefile and wantspec can now be setBarry Warsaw1999-04-271-2/+2
| | | | on every invocation, instead of just the first.
* askcolor(): databasefile and wantspec can now be set on everyBarry Warsaw1999-04-271-3/+13
| | | | invocation, instead of just the first.
* Implement dynamic external Viewer discovery.Barry Warsaw1999-04-271-34/+61
| | | | | PyncheWidget.__init__(): Add the extrapath argument which can be used to pass in additional directories to search for Viewers.
* Add a module global variable ADDTOVIEW to conform to dynamic viewerBarry Warsaw1999-04-273-1/+7
| | | | lookup protocol.
* Added docstring describing Viewer interface.Barry Warsaw1999-04-271-0/+33
| | | | | set_colordb(): Call Viewers' colordb_changed() method if they have them. Notifies them of changes to the color name database.
* add a commentBarry Warsaw1999-04-271-0/+1
|
* When selecting a radio button in the TextViewer (to change a specificBarry Warsaw1999-04-271-6/+28
| | | | | text widget attribute), the color the attribute currently has is set in the main widget.
* Change Black/White button labels to not include the arrowBarry Warsaw1999-04-271-2/+2
|
* Describe namedcolors.txtBarry Warsaw1999-04-261-0/+2
|
* An alternative Netscape databaseBarry Warsaw1999-04-261-0/+100
|
* Describe how to load a new databaseBarry Warsaw1999-04-261-0/+7
|
* Describe the Color database filesBarry Warsaw1999-04-261-31/+58
|
* Put the 'File' menu on the menubar even when modal, so users can getBarry Warsaw1999-04-261-4/+3
| | | | | to the 'load palette' entry. Just don't put the quit button on there.
* Tim Peter's sister's 140 named colors that NS and MSIE understandBarry Warsaw1999-04-261-0/+141
| | | | (with some controversy surrounding AliceBlue :-)
* The "Web-safe" colors (all #rrggbb style)Barry Warsaw1999-04-261-0/+217
|
* The HTML 4.0 guaranteed colors.Barry Warsaw1999-04-261-0/+17
|
* Set the version number to 1.0 -- I think it's stable enoughBarry Warsaw1999-04-261-1/+1
|
* Lots of changes to support loading alternative color name database.Barry Warsaw1999-04-266-78/+180
| | | | | | | | | 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.