This is called to load an element from the "Entry List"
()
| 1521 | valuesv.set("") |
| 1522 | |
| 1523 | def editentrylist(): |
| 1524 | """ |
| 1525 | This is called to load an element from the "Entry List" |
| 1526 | """ |
| 1527 | try: |
| 1528 | selected = int(entrylist.curselection()[0]) |
| 1529 | except IndexError: |
| 1530 | return |
| 1531 | # If there's a previously edited (unfinished), clear |
| 1532 | if self.currently_editing is not None: |
| 1533 | entrylist.itemconfigure(self.currently_editing, fg="black") |
| 1534 | # Set currently edited mode |
| 1535 | self.currently_editing = selected |
| 1536 | # Show selected item in blue |
| 1537 | entrylist.itemconfigure(selected, fg="blue") |
| 1538 | entrylist.selection_clear(selected) |
| 1539 | |
| 1540 | operation = operations[selected] |
| 1541 | # Set textboxes |
| 1542 | scopev.set(operation[0]) |
| 1543 | attributev.set(operation[1]) |
| 1544 | valuesv.set(self._format_attribute(operation[1], operation[2])) |
| 1545 | |
| 1546 | def removeentrylist(): |
| 1547 | """ |
nothing calls this directly
no test coverage detected