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
eca33129
Commit
eca33129
authored
Sep 05, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up some markup
parent
abced68d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
Doc/mac/libmacui.tex
Doc/mac/libmacui.tex
+16
-15
No files found.
Doc/mac/libmacui.tex
View file @
eca33129
...
...
@@ -15,7 +15,7 @@ code for details.
The
\module
{
EasyDialogs
}
module defines the following functions:
\begin{funcdesc}
{
Message
}{
str
\optional
{
, id
\optional
{
, ok
=None
}}}
\begin{funcdesc}
{
Message
}{
str
\optional
{
, id
\optional
{
, ok
}}}
Displays a modal dialog with the message text
\var
{
str
}
, which should be
at most 255 characters long. The button text defaults to ``OK'', but is
set to the string argument
\var
{
ok
}
if the latter is supplied. Control
...
...
@@ -30,8 +30,8 @@ is the prompt message, and the optional \var{default} supplies the
initial value for the string (otherwise
\code
{
""
}
is used). The text of
the ``OK'' and ``Cancel'' buttons can be changed with the
\var
{
ok
}
and
\var
{
cancel
}
arguments. All strings can be at most 255 bytes long.
\function
{
AskString()
}
returns the string entered or
\co
de
{
None
}
in case
the user cancelled.
\function
{
AskString()
}
returns the string entered or
\co
nstant
{
None
}
in case
the user cancelled.
\end{funcdesc}
...
...
@@ -128,23 +128,23 @@ off.
\optional
{
, wanted
}
}
Post a dialog asking the user for a file to open, and return the file
selected or
\
var
{
None
}
if the user cancelled.
selected or
\
constant
{
None
}
if the user cancelled.
\var
{
message
}
is a text message to display,
\var
{
typeList
}
is a list of 4-char filetypes allowable,
\var
{
defaultLocation
}
is the pathname,
FSSpec or FSRef of the folder
to show initially,
\var
{
defaultLocation
}
is the pathname,
\class
{
FSSpec
}
or
\class
{
FSRef
}
of the folder
to show initially,
\var
{
location
}
is the
\code
{
(x, y)
}
position on the screen where the
dialog is shown,
\var
{
actionButtonLabel
}
is a string to show in stead of ``Open'' in the
OK button,
\var
{
cancelButtonLabel
}
is a string to show in stead of ``Cancel'' in the
cancel button,
\var
{
wanted
}
is the type of value wanted as a return:
\class
{
str
ing
}
,
\var
{
wanted
}
is the type of value wanted as a return:
\class
{
str
}
,
\class
{
unicode
}
,
\class
{
FSSpec
}
,
\class
{
FSRef
}
and subtypes thereof are
acceptable.
For a description of the other arguments please see the Apple Navigation
Services documentation and the
EasyDialogs source
code.
Services documentation and the
\module
{
EasyDialogs
}
source
code.
\end{funcdesc}
\begin{funcdesc}
{
AskFileForSave
}{
...
...
@@ -164,10 +164,11 @@ Services documentation and the EasyDialogs sourcecode.
\optional
{
, eventProc
}
\optional
{
, wanted
}
}
Post a dialog asking the user for a file to save to, and return the file
selected or
\var
{
None
}
if the user cancelled.
\var
{
savedFileName
}
is the
default for the file name to save to (the return value). See AskFileForOpen
for a description of the other arguments.
Post a dialog asking the user for a file to save to, and return the
file selected or
\constant
{
None
}
if the user cancelled.
\var
{
savedFileName
}
is the default for the file name to save to (the
return value). See
\function
{
AskFileForOpen()
}
for a description of
the other arguments.
\end{funcdesc}
\begin{funcdesc}
{
AskFolder
}{
...
...
@@ -185,9 +186,9 @@ for a description of the other arguments.
\optional
{
, filterProc
}
\optional
{
, wanted
}
}
Post a dialog asking the user to select a folder, and return the
folder
selected or
\var
{
None
}
if the user cancelled. See AskFileForOpen
for a description of the arguments.
Post a dialog asking the user to select a folder, and return the
folder selected or
\constant
{
None
}
if the user cancelled. See
\function
{
AskFileForOpen()
}
for a description of the arguments.
\end{funcdesc}
\subsection
{
ProgressBar Objects
\label
{
progressbar-objects
}}
...
...
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