Add Form.insert() method, to insert field based on index
				
					
				
			This commit is contained in:
		
							parent
							
								
									01b78d7513
								
							
						
					
					
						commit
						e284370c4b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -447,6 +447,9 @@ class Form(object):
 | 
			
		|||
    def append(self, field):
 | 
			
		||||
        self.fields.append(field)
 | 
			
		||||
 | 
			
		||||
    def insert(self, index, field):
 | 
			
		||||
        self.fields.insert(index, field)
 | 
			
		||||
 | 
			
		||||
    def insert_before(self, field, newfield):
 | 
			
		||||
        self.fields.insert_before(field, newfield)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue