Changeset 21f0ba8 in flexograder


Ignore:
Timestamp:
11/23/25 20:18:30 (4 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
fake-data, main, master
Children:
e70dd79
Parents:
36bee44
Message:

fix catalog import and exit method on_quit

Location:
gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gui/gui.py

    r36bee44 r21f0ba8  
    199199
    200200        catalog = QuestionCatalog.from_dict(data)
    201         title = simpledialog.askstring("New Catalog", "Enter title:", parent=self)
    202         catalog.title = title
    203201        self.catalog_manager.add_catalog(catalog)
    204202        self.catalog_manager.set_active(catalog.flexo_id)
     
    653651
    654652    def on_quit(self):
     653        self.update_idletasks()
    655654        self.session.save(self.geometry())
    656655        self.destroy()
  • gui/menu.py

    r36bee44 r21f0ba8  
    1313        filemenu.add_command(label="Import exam from file", command=parent.import_exam_from_file)
    1414        filemenu.add_separator()
    15         filemenu.add_command(label="Exit", command=parent.quit)
     15        filemenu.add_command(label="Exit", command=parent.on_quit)
    1616        self.add_cascade(label="File", menu=filemenu)
    1717
Note: See TracChangeset for help on using the changeset viewer.