Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cf1daad8
Commit
cf1daad8
authored
Oct 22, 1998
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Brief update on the slightly changed API of pyColorChooser.askcolor().
Added a To Do list.
parent
2be85823
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
11 deletions
+41
-11
Tools/pynche/README
Tools/pynche/README
+41
-11
No files found.
Tools/pynche/README
View file @
cf1daad8
...
@@ -71,10 +71,10 @@ Running as a Modal Dialog
...
@@ -71,10 +71,10 @@ Running as a Modal Dialog
tkColorChooser module, with a few changes. By importing
tkColorChooser module, with a few changes. By importing
pyColorChooser from the Pynche package, you can run
pyColorChooser from the Pynche package, you can run
pyColorChooser.askcolor(
master=window
)
pyColorChooser.askcolor()
wh
ere `window' is an Tkinter parent window object. Without the
wh
ich will popup Pynche as a modal dialog, and return the selected
`master' keyword argument, Pynche runs standalone
.
color
.
There are some UI differences when running as a modal
There are some UI differences when running as a modal
vs. standalone. When running as a modal, there is no "File" menu,
vs. standalone. When running as a modal, there is no "File" menu,
...
@@ -91,25 +91,38 @@ Running as a Modal Dialog
...
@@ -91,25 +91,38 @@ Running as a Modal Dialog
is different than tkColorChooser, which doesn't know anything
is different than tkColorChooser, which doesn't know anything
about color names.
about color names.
When the optional keyword `wantspec' is true, a #rrggbb color spec
askcolor() supports the following optional keyword arguments:
will always be returned instead of a color name.
askcolor() also supports the following optional keyword arguments
color
which parallel the command line options described above:
the color to set as the initial selected color
initialcolor
master[*]
the master window to use as the parent of the modal
dialog. Without this argument, pyColorChooser will create
it's own Tkinter.Tk instance as the master. This may not
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[*]
When this is true, the "name" field in the return tuple
will always be a color spec of the form "#rrggbb". It
will not return a color name even if there is a match;
this is so pyColorChooser can exactly match the API of
tkColorChooser.
[*] these arguments must be specified the first time
askcolor() is used and cannot be changed on subsequent calls.
The Colorstrip Window
The Colorstrip Window
The top part of the main Pynche window contains the "variation
The top part of the main Pynche window contains the "variation
...
@@ -301,3 +314,20 @@ Persistency
...
@@ -301,3 +314,20 @@ Persistency
the storing of the settings in the init file on Pynche exit. If
the storing of the settings in the init file on Pynche exit. If
you really want to do this, use /dev/null as the init file, using
you really want to do this, use /dev/null as the init file, using
--initfile.
--initfile.
To Do
Here's a brief list of things I want to do:
- Better support for resizing the top level windows
- Better support on 8-bit screens
- More output views, e.g. color solids
- Have the notion of a `last color selected'; this may require a
new output view
- Support setting the font in the text view
I'm open to suggestions!
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment