Skip to content

Commit a7a5ba5

Browse files
committed
Removed extra parameters from the addPerson() and removePerson() methods in the binding example
1 parent 81c4d08 commit a7a5ba5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/binding_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def initLayout(self):
122122

123123
vbox.add(Box.createVerticalGlue())
124124

125-
def addPerson(self, event):
125+
def addPerson(self):
126126
person = Person()
127127
self.peopleTable.model.append(person)
128128
modelRow = self.peopleTable.model.getObjectIndex(person)
@@ -132,7 +132,7 @@ def addPerson(self, event):
132132
# Set the focus to the first name field
133133
self.firstNameField.grabFocus()
134134

135-
def removePerson(self, event):
135+
def removePerson(self):
136136
viewRow = self.peopleTable.selectedRow
137137
modelRow = self.peopleTable.convertRowIndexToView(viewRow)
138138
del self.peopleTable.model[modelRow]

0 commit comments

Comments
 (0)