summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/PyncheWidget.py
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!)
* 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.
* 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.
* Lots of changes to support loading alternative color name database.Barry Warsaw1999-04-261-2/+33
| | | | | | | | | 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.
* Helpwin.__init__(): The text widget should get focus.Barry Warsaw1999-03-261-0/+1
|
* A start on the TestModExp appletBarry Warsaw1998-12-151-3/+3
| | | | "Author" => "Contact"
* Added Helpwin -- help in a text widgetBarry Warsaw1998-12-031-0/+60
|
* UpdatingBarry Warsaw1998-11-181-3/+0
|
* beep => bellBarry Warsaw1998-10-221-3/+6
| | | | deiconify(): New method
* Many changes to support a second mode of operation. Pynche can now beBarry Warsaw1998-10-221-30/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
|
* Updated about textBarry Warsaw1998-10-071-3/+3
|
* Moved the main pynche.py file to Main.py. Added minimal driverBarry Warsaw1998-10-071-1/+1
| | | | | scripts pynche.py and pynche.pyw for Unix and Windows startup respectively. Document the .pyw file in the README.
* Copyright CNRIBarry Warsaw1998-10-061-2/+1
|
* Better initial color choosingBarry Warsaw1998-10-061-4/+7
|
* Converted to newstyle menubarsBarry Warsaw1998-10-061-34/+43
|
* Added version number in the About windowBarry Warsaw1998-10-061-4/+6
|
* Added details windowBarry Warsaw1998-10-051-1/+11
|
* DocstringBarry Warsaw1998-10-021-0/+3
|
* Added the ListViewerBarry Warsaw1998-10-021-0/+11
|
* Added View button and popup of text widgetBarry Warsaw1998-10-011-1/+22
|
* Make sure the menubar is stretchedBarry Warsaw1998-10-011-1/+1
|
* Get rid of Edit menuBarry Warsaw1998-10-011-14/+0
|
* Removed old cruft, added raw about dialogBarry Warsaw1998-09-291-44/+13
|
* De PMW-ifyBarry Warsaw1998-09-281-201/+110
|
* Get rid of EntrywidgetBarry Warsaw1998-03-161-14/+0
|
* Use the new PyncheOptions widgetBarry Warsaw1998-03-161-8/+30
|
* Integrate with OptionsWindow... not sure it should be modalBarry Warsaw1998-03-101-6/+26
|
* Added about dialogBarry Warsaw1998-02-171-4/+60
|
* Added method to set selected color to nearest.Barry Warsaw1998-02-171-8/+16
| | | | | | Collapsed `Options' group into `Current Color' group Set delegate of reds, greens, blues
* fixed the generatorsBarry Warsaw1998-02-131-12/+18
|
* Added color strip widgetsBarry Warsaw1998-02-121-3/+45
|
* new interface to find_byname()Barry Warsaw1998-02-111-1/+1
|
* Interface changes, delegate chaining, type in widget additionBarry Warsaw1998-02-111-13/+37
|
* Initial revisionBarry Warsaw1998-01-311-0/+51