summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/StripViewer.py
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-221-1/+1
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-3/+3
|
* Patch #812378: Normalize white space.Martin v. Löwis2003-10-241-113/+113
|
* De-string-module-ification.Barry Warsaw2001-07-101-5/+7
|
* 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.
* Change Black/White button labels to not include the arrowBarry Warsaw1999-04-271-2/+2
|
* 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.
* Many changes to support a second mode of operation. Pynche can now beBarry Warsaw1998-10-221-17/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+9
|
* RightARrow._create(): justify=RIGHT on the text objectBarry Warsaw1998-10-061-0/+1
|
* Added a hex button so arrow numbers can display in decimal or hex.Barry Warsaw1998-10-061-7/+30
|
* DocstringBarry Warsaw1998-10-021-0/+26
|
* Add a nice dividerBarry Warsaw1998-10-011-2/+7
|
* Added options to visible windowBarry Warsaw1998-10-011-11/+16
|
* Added an extra frame in widget heirarchy in case I want to addBarry Warsaw1998-09-291-3/+6
| | | | separators later
* Fixed the brightness calculationBarry Warsaw1998-09-281-1/+1
|
* Updated to new post-PMW framework. Moved generators to here and addedBarry Warsaw1998-09-281-36/+74
| | | | the StripViewer class.
* formattingBarry Warsaw1998-09-281-6/+6
|
* Un PMW-ifiedBarry Warsaw1998-09-281-41/+24
|
* update while dragging defaults to 0Barry Warsaw1998-03-171-1/+1
|
* No update while dragging still tracks the arrowsBarry Warsaw1998-03-171-36/+59
|
* Add option for no updates on draggingBarry Warsaw1998-03-161-11/+9
|
* Very modest improvementsBarry Warsaw1998-02-181-27/+31
|
* Get rid of commented out, slower versionsBarry Warsaw1998-02-181-14/+0
|
* Implementation using TCLPROC loaded into the Tcl interpreterBarry Warsaw1998-02-181-10/+32
|
* Several optimizations:Barry Warsaw1998-02-181-51/+81
| | | | | | | | | | | | | self.__chips now contains the list of rgbtuple values for the chips named i - 1 (Tkinter counts from 1, we count from zero). The chip number was just the index + 1. This means color lookup need not do an itemcget(), it can just index into __chips. instead of calling __canvas.itemconfigure(), we glom up a huge Tcl script and call tk.eval() directly. Actually we do many appends to a Python list, then string.join() them together into one huge string. This reduces the overhead of Tkinter but making one fast call to Tcl.
* Added chip selection stuff, strip labelBarry Warsaw1998-02-171-8/+40
|
* get arrow movement, and text updating. also outlining of highlightBarry Warsaw1998-02-131-2/+39
|
* Initial revisionBarry Warsaw1998-02-121-0/+135