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
0ea18465
Commit
0ea18465
authored
Sep 17, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added _quit() method similar to FrameWork in stead of setting
self.quitting by hand.
parent
5cc810a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Mac/Lib/toolbox/MiniAEFrame.py
Mac/Lib/toolbox/MiniAEFrame.py
+4
-1
No files found.
Mac/Lib/toolbox/MiniAEFrame.py
View file @
0ea18465
...
...
@@ -47,6 +47,9 @@ class MiniApplication:
def
mainloop
(
self
,
mask
=
everyEvent
,
timeout
=
60
*
60
):
while
not
self
.
quitting
:
self
.
dooneevent
(
mask
,
timeout
)
def
_quit
(
self
):
self
.
quitting
=
1
def
dooneevent
(
self
,
mask
=
everyEvent
,
timeout
=
60
*
60
):
got
,
event
=
Evt
.
WaitNextEvent
(
mask
,
timeout
)
...
...
@@ -154,7 +157,7 @@ class _Test(AEServer, MiniApplication):
self
.
mainloop
()
def
quit
(
self
,
**
args
):
self
.
quitting
=
1
self
.
_quit
()
def
open_app
(
self
,
**
args
):
pass
...
...
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