summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Added /usr/lib/X11/rgb.txt in front of X/rgb.txt for LinuxersBarry Warsaw1999-04-231-0/+2
|
* Avoid totally empty files.Guido van Rossum1999-04-101-0/+1
|
* Helpwin.__init__(): The text widget should get focus.Barry Warsaw1999-03-261-0/+1
|
* Removed unnecessary import `from PyncheWidget import PyncheWidget'Barry Warsaw1999-03-261-1/+0
|
* Added most of the mechanism to change the strips from color variationsBarry Warsaw1998-12-151-20/+101
| | | | | | | | to color constants (i.e. red constant, green constant, blue constant). But I haven't hooked this up yet because the UI gets more crowded and the arrows don't reflect the correct values. Added "Go to Black" and "Go to White" buttons.
* A start on the TestModExp appletBarry Warsaw1998-12-153-6/+6
| | | | "Author" => "Contact"
* Added Helpwin -- help in a text widgetBarry Warsaw1998-12-031-0/+60
|
* Untabification and other cruftBarry Warsaw1998-12-031-31/+40
|
* docstring(): Function for returning __doc__ % globals()Barry Warsaw1998-12-031-1/+6
|
* A little more tweakageBarry Warsaw1998-11-181-5/+20
|
* (ChipViewer): Make frame sticky NSEW to fix geometry problem.Barry Warsaw1998-11-181-1/+1
|
* tweak version numberBarry Warsaw1998-11-181-1/+1
|
* UpdatingBarry Warsaw1998-11-182-4/+0
|
* Brief update on the slightly changed API of pyColorChooser.askcolor().Barry Warsaw1998-10-221-11/+41
| | | | Added a To Do list.
* __init__(): Removed initialcolor keyword.Barry Warsaw1998-10-221-6/+26
| | | | | | | | | | | | | show(): added color keyword here so that the selected color can be chosen on each invocation of askcolor(). Also fixed this class, and askcolor() so that the same Chooser instance can be re-used instead of creating a new one on each invocation of askcolor(). Added a module function save() which can be used to explicitly save the option database in ~/.pynche. This does not happen automatically when used as a modal.
* sticky should be NSEW to fix pixel weirdness at right edgeBarry Warsaw1998-10-221-1/+1
|
* Error message goes to stderrBarry Warsaw1998-10-221-4/+8
| | | | | canceled() takes an optional flag so that the canceled flag can be cleared.
* beep => bellBarry Warsaw1998-10-221-3/+6
| | | | deiconify(): New method
* Fixed running of standalone via command line. Also, only do save fromBarry Warsaw1998-10-221-3/+5
| | | | main() so that run-as-modal doesn't automatically save database.
* Describe all the new featuresBarry Warsaw1998-10-221-133/+262
|
* Chooser.__init__(): Added `wantspec' keyword to conform exactly toBarry Warsaw1998-10-221-4/+10
| | | | | tkColorChooser.askcolor() interface (i.e. don't return a color name even if there is an exact match).
* Many changes to support a second mode of operation. Pynche can now beBarry Warsaw1998-10-2210-120/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2010-27/+160
|
* The driver script on Unix is `pynche'; for Windows `pynche.pyw'Barry Warsaw1998-10-161-2/+2
|
* Updated __main__ unit testBarry Warsaw1998-10-151-5/+10
|
* Updated about textBarry Warsaw1998-10-071-3/+3
|
* Moved the main pynche.py file to Main.py. Added minimal driverBarry Warsaw1998-10-075-5/+16
| | | | | scripts pynche.py and pynche.pyw for Unix and Windows startup respectively. Document the .pyw file in the README.
* Better layout of options menu and inc/dec buttonsBarry Warsaw1998-10-071-13/+16
|
* Fixes for some type-in strangenessBarry Warsaw1998-10-071-8/+18
|
* Add a note about the console windowBarry Warsaw1998-10-061-4/+6
|