mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	fix Menu.add_command etc.
This commit is contained in:
		
							parent
							
								
									d462f3dc28
								
							
						
					
					
						commit
						a1db48b75b
					
				
					 2 changed files with 20 additions and 20 deletions
				
			
		|  | @ -1105,16 +1105,16 @@ def activate(self, index): | ||||||
| 	def add(self, itemType, cnf={}, **kw): | 	def add(self, itemType, cnf={}, **kw): | ||||||
| 		apply(self.tk.call, (self._w, 'add', itemType)  | 		apply(self.tk.call, (self._w, 'add', itemType)  | ||||||
| 		      + self._options(cnf, kw)) | 		      + self._options(cnf, kw)) | ||||||
| 	def add_cascade(self, cnf={}): | 	def add_cascade(self, cnf={}, **kw): | ||||||
| 		self.add('cascade', cnf) | 		self.add('cascade', cnf or kw) | ||||||
| 	def add_checkbutton(self, cnf={}): | 	def add_checkbutton(self, cnf={}, **kw): | ||||||
| 		self.add('checkbutton', cnf) | 		self.add('checkbutton', cnf or kw) | ||||||
| 	def add_command(self, cnf={}): | 	def add_command(self, cnf={}, **kw): | ||||||
| 		self.add('command', cnf) | 		self.add('command', cnf or kw) | ||||||
| 	def add_radiobutton(self, cnf={}): | 	def add_radiobutton(self, cnf={}, **kw): | ||||||
| 		self.add('radiobutton', cnf) | 		self.add('radiobutton', cnf or kw) | ||||||
| 	def add_separator(self, cnf={}): | 	def add_separator(self, cnf={}, **kw): | ||||||
| 		self.add('separator', cnf) | 		self.add('separator', cnf or kw) | ||||||
| 	def delete(self, index1, index2=None): | 	def delete(self, index1, index2=None): | ||||||
| 		self.tk.call(self._w, 'delete', index1, index2) | 		self.tk.call(self._w, 'delete', index1, index2) | ||||||
| 	def entryconfig(self, index, cnf={}, **kw): | 	def entryconfig(self, index, cnf={}, **kw): | ||||||
|  |  | ||||||
|  | @ -1105,16 +1105,16 @@ def activate(self, index): | ||||||
| 	def add(self, itemType, cnf={}, **kw): | 	def add(self, itemType, cnf={}, **kw): | ||||||
| 		apply(self.tk.call, (self._w, 'add', itemType)  | 		apply(self.tk.call, (self._w, 'add', itemType)  | ||||||
| 		      + self._options(cnf, kw)) | 		      + self._options(cnf, kw)) | ||||||
| 	def add_cascade(self, cnf={}): | 	def add_cascade(self, cnf={}, **kw): | ||||||
| 		self.add('cascade', cnf) | 		self.add('cascade', cnf or kw) | ||||||
| 	def add_checkbutton(self, cnf={}): | 	def add_checkbutton(self, cnf={}, **kw): | ||||||
| 		self.add('checkbutton', cnf) | 		self.add('checkbutton', cnf or kw) | ||||||
| 	def add_command(self, cnf={}): | 	def add_command(self, cnf={}, **kw): | ||||||
| 		self.add('command', cnf) | 		self.add('command', cnf or kw) | ||||||
| 	def add_radiobutton(self, cnf={}): | 	def add_radiobutton(self, cnf={}, **kw): | ||||||
| 		self.add('radiobutton', cnf) | 		self.add('radiobutton', cnf or kw) | ||||||
| 	def add_separator(self, cnf={}): | 	def add_separator(self, cnf={}, **kw): | ||||||
| 		self.add('separator', cnf) | 		self.add('separator', cnf or kw) | ||||||
| 	def delete(self, index1, index2=None): | 	def delete(self, index1, index2=None): | ||||||
| 		self.tk.call(self._w, 'delete', index1, index2) | 		self.tk.call(self._w, 'delete', index1, index2) | ||||||
| 	def entryconfig(self, index, cnf={}, **kw): | 	def entryconfig(self, index, cnf={}, **kw): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum