*** empty log message ***

This commit is contained in:
Guido van Rossum 1993-12-17 14:39:12 +00:00
parent 9e80d6f125
commit d55f4d1a76
5 changed files with 12 additions and 13 deletions

View file

@ -45,7 +45,7 @@ SFPLAY = '/usr/sbin/sfplay' # Sound playing program
# Global variables
class struct(): pass # Class to define featureless structures
class struct: pass # Class to define featureless structures
G = struct() # oHlds writable global variables

View file

@ -86,7 +86,8 @@ def main():
mainloop.register(win)
mainloop.mainloop()
def lpdispatch(type, win, detail):
def lpdispatch(event):
type, win, detail = event
if type == WE_CLOSE or type == WE_CHAR and detail in ('q', 'Q'):
mainloop.unregister(win)
elif type == WE_DRAW:

View file

@ -375,7 +375,7 @@ def do_exec(win):
save_stdout = sys.stdout
save_stderr = sys.stderr
try:
sys.stdin = sys.stdout = sys.stderr = IOWindow().init(win)
sys.stdin = sys.stdout = sys.stderr = IOWindow(win)
win.busy = 1
try:
exec(command, win.globals)
@ -404,9 +404,8 @@ def do_exec(win):
#
class IOWindow:
#
def init(self, win):
def __init__(self, win):
self.win = win
return self
#
def readline(self, *unused_args):
n = len(inputwindows)