Add Form.insert() method, to insert field based on index

This commit is contained in:
Lance Edgar 2022-03-09 19:41:46 -06:00
parent 01b78d7513
commit e284370c4b

View file

@ -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)