mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Untabification and other cruft
This commit is contained in:
parent
d0e1e51385
commit
eb6b9b7ebb
1 changed files with 40 additions and 31 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
Pynche - The PYthonically Natural Color and Hue Editor
|
Pynche - The PYthonically Natural Color and Hue Editor
|
||||||
Author: Barry A. Warsaw <bwarsaw@python.org>
|
|
||||||
|
Author: Barry A. Warsaw
|
||||||
|
Email: bwarsaw@python.org
|
||||||
|
Version: 0.1
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
|
|
||||||
|
|
@ -54,14 +57,14 @@ Running Standalone
|
||||||
|
|
||||||
--help
|
--help
|
||||||
-h
|
-h
|
||||||
Print the help message.
|
Print the help message.
|
||||||
|
|
||||||
initialcolor
|
initialcolor
|
||||||
a Tk color name or #rrggbb color spec to be used as the
|
a Tk color name or #rrggbb color spec to be used as the
|
||||||
initially selected color. This overrides any color saved in
|
initially selected color. This overrides any color saved in
|
||||||
the persistent init file. Since `#' needs to be escaped in
|
the persistent init file. Since `#' needs to be escaped in
|
||||||
many shells, it is optional in the spec (e.g. #45dd1f is the
|
many shells, it is optional in the spec (e.g. #45dd1f is the
|
||||||
same as 45dd1f).
|
same as 45dd1f).
|
||||||
|
|
||||||
Running as a Modal Dialog
|
Running as a Modal Dialog
|
||||||
|
|
||||||
|
|
@ -81,7 +84,7 @@ Running as a Modal Dialog
|
||||||
|
|
||||||
When "Okay" is hit, askcolor() returns the tuple
|
When "Okay" is hit, askcolor() returns the tuple
|
||||||
|
|
||||||
((r, g, b), "name")
|
((r, g, b), "name")
|
||||||
|
|
||||||
where r, g, and b are red, green, and blue color values
|
where r, g, and b are red, green, and blue color values
|
||||||
respectively (in the range 0 to 255). "name" will be a color name
|
respectively (in the range 0 to 255). "name" will be a color name
|
||||||
|
|
@ -92,35 +95,35 @@ Running as a Modal Dialog
|
||||||
|
|
||||||
askcolor() supports the following optional keyword arguments:
|
askcolor() supports the following optional keyword arguments:
|
||||||
|
|
||||||
color
|
color
|
||||||
the color to set as the initial selected color
|
the color to set as the initial selected color
|
||||||
|
|
||||||
master[*]
|
master[*]
|
||||||
the master window to use as the parent of the modal
|
the master window to use as the parent of the modal
|
||||||
dialog. Without this argument, pyColorChooser will create
|
dialog. Without this argument, pyColorChooser will create
|
||||||
it's own Tkinter.Tk instance as the master. This may not
|
it's own Tkinter.Tk instance as the master. This may not
|
||||||
be what you want.
|
be what you want.
|
||||||
|
|
||||||
databasefile[*]
|
databasefile[*]
|
||||||
similar to the --database option, the value must be a
|
similar to the --database option, the value must be a
|
||||||
file name
|
file name
|
||||||
|
|
||||||
initfile[*]
|
initfile[*]
|
||||||
similar to the --initfile option, the value must be a
|
similar to the --initfile option, the value must be a
|
||||||
file name
|
file name
|
||||||
|
|
||||||
ignore[*]
|
ignore[*]
|
||||||
similar to the --ignore flag, the value is a boolean
|
similar to the --ignore flag, the value is a boolean
|
||||||
|
|
||||||
wantspec[*]
|
wantspec[*]
|
||||||
When this is true, the "name" field in the return tuple
|
When this is true, the "name" field in the return tuple
|
||||||
will always be a color spec of the form "#rrggbb". It
|
will always be a color spec of the form "#rrggbb". It
|
||||||
will not return a color name even if there is a match;
|
will not return a color name even if there is a match;
|
||||||
this is so pyColorChooser can exactly match the API of
|
this is so pyColorChooser can exactly match the API of
|
||||||
tkColorChooser.
|
tkColorChooser.
|
||||||
|
|
||||||
[*] these arguments must be specified the first time
|
[*] these arguments must be specified the first time
|
||||||
askcolor() is used and cannot be changed on subsequent calls.
|
askcolor() is used and cannot be changed on subsequent calls.
|
||||||
|
|
||||||
The Colorstrip Window
|
The Colorstrip Window
|
||||||
|
|
||||||
|
|
@ -330,3 +333,9 @@ To Do
|
||||||
- Support setting the font in the text view
|
- Support setting the font in the text view
|
||||||
|
|
||||||
I'm open to suggestions!
|
I'm open to suggestions!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Local Variables:
|
||||||
|
indent-tabs-mode: nil
|
||||||
|
End:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue