mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Add parent argument to 'to to line number' dialog box.
This commit is contained in:
		
							parent
							
								
									0688436305
								
							
						
					
					
						commit
						69ef7d6220
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -74,7 +74,8 @@ class SearchBinding:
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	def goto_line_event(self, event):
 | 
						def goto_line_event(self, event):
 | 
				
			||||||
		lineno = tkSimpleDialog.askinteger("Goto",
 | 
							lineno = tkSimpleDialog.askinteger("Goto",
 | 
				
			||||||
						   "Go to line number:")
 | 
											   "Go to line number:",
 | 
				
			||||||
 | 
											   parent=self.text)
 | 
				
			||||||
		if lineno is None:
 | 
							if lineno is None:
 | 
				
			||||||
			return "break"
 | 
								return "break"
 | 
				
			||||||
		if lineno <= 0:
 | 
							if lineno <= 0:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue