Merge pull request #13 from ConiKost/python39

Add python3.9 compatiblity
This commit is contained in:
Sean Davis 2020-10-18 06:29:23 -04:00 committed by GitHub
commit 4f6c280f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class Builder(Gtk.Builder):
tree = ElementTree()
tree.parse(filename)
ele_widgets = tree.getiterator("object")
ele_widgets = tree.iter("object")
for ele_widget in ele_widgets:
name = ele_widget.attrib['id']
widget = self.get_object(name)
@ -111,7 +111,7 @@ class Builder(Gtk.Builder):
if connections:
self.connections.extend(connections)
ele_signals = tree.getiterator("signal")
ele_signals = tree.iter("signal")
for ele_signal in ele_signals:
self.glade_handler_dict.update(
{ele_signal.attrib["handler"]: None})