Thread args/kwargs on template

This commit is contained in:
Luke Murphy 2020-10-12 13:54:51 +02:00
parent c10bae300c
commit b6a38f3821
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -19,8 +19,8 @@ class PendingTransferRow(Gtk.ListBoxRow):
transferCodeButton = Gtk.Template.Child()
cancelTransfer = Gtk.Template.Child()
def __init__(self, fileName, transferCode):
super(PendingTransferRow, self).__init__()
def __init__(self, fileName, transferCode, *args, **kwargs):
super(PendingTransferRow, self).__init__(*args, **kwargs)
self.fileNameLabel.set_text(fileName)
self.transferCodeButton.set_label(transferCode)