More work on native gui. Make data editable.

This commit is contained in:
thooge committed 2026-10-29 18:59:21 +01:00
1 parent 5641e1706f
commit 7aa5d2af3b
43 files changed
+2686 -1037

No files matched your search

+2
View File
@@ -59,6 +59,7 @@ class FusesView(View):
combobox.activate_row(self.combo['equipment'], -1)
self.entry['location'].set_text('')
self.text['remarks'].get_buffer().set_text('')
self.spin['fnumber'].grab_focus()
def display_record(self):
self.label['fnumber'].set_text(f"F{self.fuse.fnumber}")
@@ -79,6 +80,7 @@ class FusesView(View):
combobox.activate_row(self.combo['equipment'], self.fuse.eid)
self.entry['location'].set_text(self.fuse.location)
self.text['remarks'].get_buffer().set_text(self.prov.remarks or '')
self.spin['fnumber'].grab_focus()
def save_record(self):
# fields must have been validated beforehand