From 7037060829f06ad9a92b8811c54b51f663d62efa Mon Sep 17 00:00:00 2001 From: rra Date: Sun, 11 Oct 2020 09:28:27 +0200 Subject: [PATCH] WIP: use listbox to hold pending tranfers --- dropship.py | 3 ++- ui_templates.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dropship.py b/dropship.py index 6a49d6b..07127e0 100644 --- a/dropship.py +++ b/dropship.py @@ -107,7 +107,8 @@ class DropShip: # TODO Roel/Luke, move this somewhere logical in its own function? status = pendingTransferRow(self, fpath.split('/')[-1], self.transfer_code) - self.pending_transfers_list.add(status) + # TODO Roel, find out how to add to a listbox + self.pending_transfers_list.insert(status,-1) #-1 is add at bottom else: log.info("Multiple file sending coming soon ™") diff --git a/ui_templates.py b/ui_templates.py index 24df7e8..e368329 100644 --- a/ui_templates.py +++ b/ui_templates.py @@ -16,7 +16,7 @@ class pendingTransferRow(Gtk.ListBoxRow): self.init_template() self.fileNameLabel.set_text(fileName) - self.transmissionCodeButton.set_label(transferCode) + self.transferCodeButton.set_label(transferCode) @Gtk.Template.Callback() def copy_transfer_code(self,widget):