Browse Source

WIP: use listbox to hold pending tranfers

unifiedWindowUI
rra 4 years ago
parent
commit
7037060829
  1. 3
      dropship.py
  2. 2
      ui_templates.py

3
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 ™")

2
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):

Loading…
Cancel
Save