mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
This commit is contained in:
		
							parent
							
								
									f79cb2db3e
								
							
						
					
					
						commit
						d829e9e8e3
					
				
					 15 changed files with 48 additions and 48 deletions
				
			
		|  | @ -32,7 +32,7 @@ def open(self): | |||
| 						self._procID,  | ||||
| 						0) | ||||
| 		self.SetPort() | ||||
| 		#Win.ValidRect(self._bounds) | ||||
| 		#Win.ValidWindowRect(self._bounds) | ||||
| 		self.enable(self._enabled) | ||||
| 	 | ||||
| 	def adjust(self, oldbounds): | ||||
|  | @ -43,7 +43,7 @@ def adjust(self, oldbounds): | |||
| 		if self._visible: | ||||
| 			Qd.EraseRect(self._bounds) | ||||
| 			self._control.ShowControl() | ||||
| 			Win.ValidRect(self._bounds) | ||||
| 			Win.ValidWindowRect(self._bounds) | ||||
| 	 | ||||
| 	def close(self): | ||||
| 		self._control.HideControl() | ||||
|  | @ -162,8 +162,8 @@ def adjust(self, oldbounds): | |||
| 			old = Qd.InsetRect(oldbounds, -4, -4) | ||||
| 			new = Qd.InsetRect(self._bounds, -4, -4) | ||||
| 			Qd.EraseRect(old) | ||||
| 			Win.InvalRect(old) | ||||
| 			Win.InvalRect(new) | ||||
| 			Win.InvalWindowRect(old) | ||||
| 			Win.InvalWindowRect(new) | ||||
| 		ControlWidget.adjust(self, oldbounds) | ||||
| 
 | ||||
| 
 | ||||
|  | @ -346,7 +346,7 @@ def draw(self, visRgn = None): | |||
| 	 | ||||
| 	def adjust(self, oldbounds): | ||||
| 		self.SetPort() | ||||
| 		Win.InvalRect(oldbounds) | ||||
| 		Win.InvalWindowRect(oldbounds) | ||||
| 		self._control.HideControl() | ||||
| 		self._control.MoveControl(self._bounds[0], self._bounds[1]) | ||||
| 		self._control.SizeControl(self._bounds[2] - self._bounds[0], self._bounds[3] - self._bounds[1]) | ||||
|  | @ -356,7 +356,7 @@ def adjust(self, oldbounds): | |||
| 				self._control.ShowControl() | ||||
| 			else: | ||||
| 				Qd.FrameRect(self._bounds) | ||||
| 			Win.ValidRect(self._bounds) | ||||
| 			Win.ValidWindowRect(self._bounds) | ||||
| 	 | ||||
| 	def activate(self, onoff): | ||||
| 		self._activated = onoff | ||||
|  | @ -366,7 +366,7 @@ def activate(self, onoff): | |||
| 			else: | ||||
| 				self._control.HideControl() | ||||
| 				self.draw(None) | ||||
| 				Win.ValidRect(self._bounds) | ||||
| 				Win.ValidWindowRect(self._bounds) | ||||
| 		 | ||||
| 	def set(self, value): | ||||
| 		if self._control: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen