WIP: use listbox to hold pending tranfers

This commit is contained in:
rra 2020-10-11 09:28:27 +02:00
parent 652668f454
commit 7037060829
2 changed files with 3 additions and 2 deletions

View File

@ -107,7 +107,8 @@ class DropShip:
# TODO Roel/Luke, move this somewhere logical in its own function? # TODO Roel/Luke, move this somewhere logical in its own function?
status = pendingTransferRow(self, fpath.split('/')[-1], self.transfer_code) 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: else:
log.info("Multiple file sending coming soon ™") log.info("Multiple file sending coming soon ™")

View File

@ -16,7 +16,7 @@ class pendingTransferRow(Gtk.ListBoxRow):
self.init_template() self.init_template()
self.fileNameLabel.set_text(fileName) self.fileNameLabel.set_text(fileName)
self.transmissionCodeButton.set_label(transferCode) self.transferCodeButton.set_label(transferCode)
@Gtk.Template.Callback() @Gtk.Template.Callback()
def copy_transfer_code(self,widget): def copy_transfer_code(self,widget):