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
30fe363f
Commit
30fe363f
authored
Oct 04, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed progressbar cleanup
parent
a0ca4c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Mac/Lib/EasyDialogs.py
Mac/Lib/EasyDialogs.py
+4
-6
No files found.
Mac/Lib/EasyDialogs.py
View file @
30fe363f
...
...
@@ -144,19 +144,17 @@ class ProgressBar:
Qd
.
BackColor
(
QuickDraw
.
whiteColor
)
# Test for cancel button
if
ModalDialog
(
self
.
_filterfunc
)
==
1
:
if
ModalDialog
(
_ProgressBar
_filterfunc
)
==
1
:
raise
KeyboardInterrupt
def
_filterfunc
(
self
,
d
,
e
,
*
more
):
return
2
# XXXX For now, this disables the cancel button
def
set
(
self
,
value
):
if
value
<
0
:
value
=
0
if
value
>
self
.
maxval
:
value
=
self
.
maxval
self
.
_update
(
value
)
def
_ProgressBar_filterfunc
(
*
args
):
return
2
# Disabled, for now.
def
test
():
Message
(
"Testing EasyDialogs."
)
ok
=
AskYesNoCancel
(
"Do you want to proceed?"
)
...
...
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