mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Get rid of from ... import *
This commit is contained in:
		
							parent
							
								
									cd90c20b62
								
							
						
					
					
						commit
						def0d8da5a
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -40,7 +40,7 @@ def setnchannels(self, nchannels):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def writeframes(self, data):
 | 
						def writeframes(self, data):
 | 
				
			||||||
		import time
 | 
							import time
 | 
				
			||||||
		from Sound import *
 | 
							from Sound import bufferCmd, callBackCmd, extSH
 | 
				
			||||||
		import struct
 | 
							import struct
 | 
				
			||||||
		import MacOS
 | 
							import MacOS
 | 
				
			||||||
		if not self._chan:
 | 
							if not self._chan:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -123,7 +123,7 @@ def drawtext(what = 0):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def wait():
 | 
					def wait():
 | 
				
			||||||
	import Evt
 | 
						import Evt
 | 
				
			||||||
	from Events import *
 | 
						import Events
 | 
				
			||||||
	global splash
 | 
						global splash
 | 
				
			||||||
	try:
 | 
						try:
 | 
				
			||||||
		splash
 | 
							splash
 | 
				
			||||||
| 
						 | 
					@ -133,16 +133,16 @@ def wait():
 | 
				
			||||||
	time = Evt.TickCount()
 | 
						time = Evt.TickCount()
 | 
				
			||||||
	whattext = 0
 | 
						whattext = 0
 | 
				
			||||||
	while _keepsplashscreenopen:
 | 
						while _keepsplashscreenopen:
 | 
				
			||||||
		ok, event = Evt.EventAvail(highLevelEventMask)
 | 
							ok, event = Evt.EventAvail(Events.highLevelEventMask)
 | 
				
			||||||
		if ok:
 | 
							if ok:
 | 
				
			||||||
			# got apple event, back to mainloop
 | 
								# got apple event, back to mainloop
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		ok, event = Evt.EventAvail(mDownMask | keyDownMask | updateMask)
 | 
							ok, event = Evt.EventAvail(Events.mDownMask | Events.keyDownMask | Events.updateMask)
 | 
				
			||||||
		if ok:
 | 
							if ok:
 | 
				
			||||||
			ok, event = Evt.WaitNextEvent(mDownMask | keyDownMask | updateMask, 30)
 | 
								ok, event = Evt.WaitNextEvent(Events.mDownMask | Events.keyDownMask | Events.updateMask, 30)
 | 
				
			||||||
			if ok:
 | 
								if ok:
 | 
				
			||||||
				(what, message, when, where, modifiers) = event
 | 
									(what, message, when, where, modifiers) = event
 | 
				
			||||||
				if what == updateEvt:
 | 
									if what == Events.updateEvt:
 | 
				
			||||||
					if Win.WhichWindow(message) == splash:
 | 
										if Win.WhichWindow(message) == splash:
 | 
				
			||||||
						UpdateSplash(1, whattext)
 | 
											UpdateSplash(1, whattext)
 | 
				
			||||||
				else:
 | 
									else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue