From 6be4865e54c0cd8381c737264f4f71f9251d8aa3 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 11 Oct 2020 14:01:39 +0200 Subject: [PATCH] Call super on own class Also capitalise. Following https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/52. --- dropship/dropship.py | 4 ++-- dropship/ui_templates.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dropship/dropship.py b/dropship/dropship.py index da3aa44..a691591 100644 --- a/dropship/dropship.py +++ b/dropship/dropship.py @@ -12,7 +12,7 @@ require_version("Gdk", "3.0") from gi.repository import Gdk, GLib, Gtk -from dropship.ui_templates import pendingTransferRow +from dropship.ui_templates import PendingTransferRow CWD = Path(__file__).absolute().parent @@ -101,7 +101,7 @@ class DropShip: self.nursery.start_soon(self.wormhole_send, fpath) # TODO Roel/Luke, move this somewhere logical in its own function? - status = pendingTransferRow(self, fname, self.transfer_code) + status = PendingTransferRow(self, fname, self.transfer_code) # TODO Roel, find out how to add to a listbox self.pending_transfers_list.insert( diff --git a/dropship/ui_templates.py b/dropship/ui_templates.py index b7112d0..df5c803 100644 --- a/dropship/ui_templates.py +++ b/dropship/ui_templates.py @@ -10,7 +10,7 @@ CWD = Path(__file__).absolute().parent @Gtk.Template.from_file(f"{CWD}/ui/pendingTransferRow.ui") -class pendingTransferRow(Gtk.ListBoxRow): +class PendingTransferRow(Gtk.ListBoxRow): __gtype_name__ = "PendingTransferRow" fileNameLabel = Gtk.Template.Child() @@ -19,7 +19,7 @@ class pendingTransferRow(Gtk.ListBoxRow): cancelTransfer = Gtk.Template.Child() def __init__(self, parent, fileName, transferCode): - super(Gtk.ListBoxRow, self).__init__() + super(PendingTransferRow, self).__init__() self.fileNameLabel.set_text(fileName) self.transferCodeButton.set_label(transferCode)