excel2moodle.ui package
Here is the relevant stuff for the UI
Submodules
excel2moodle.ui.appUi module
AppUi holds the extended class mainWindow() and any other main Windows.
It needs to be seperated from windowMain.py
because that file will be changed by the
pyside6-uic
command, which generates the python code from the .ui
file
- class excel2moodle.ui.appUi.MainWindow(settings, testDB)[source]
Bases:
QMainWindow
- Parameters:
settings (Settings)
testDB (QuestionDB)
- onSelectionChanged(**args)[source]
Whenever the selection changes the total of selected points needs to be recalculated.
- Return type:
None
- parseSpreadsheetAll()[source]
Event triggered by the Tools/Parse all Questions Event.
It parses all the Questions found in the spreadsheet and then refreshes the list of questions. If successful it prints out a list of all exported Questions
- Return type:
None
- staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits "QMainWindow": Methods: #39 type=Slot, signature=setQVariantDefault() #40 type=Slot, signature=parseSpreadsheetAll() #41 type=Slot, signature=onSelectionChanged() #42 type=Slot, signature=toggleQuestionSelectionState() #43 type=Slot, signature=onButGenTest() #44 type=Slot, signature=actionSpreadsheet() #45 type=Slot, signature=treeRefreshCategory(PyObject), parameters=PyObject #46 type=Slot, signature=updateQuestionPreview() #47 type=Slot, signature=openEqCheckerDlg() #48 type=Slot, signature=openAboutDlg() #49 type=Slot, signature=openDocumentation() )
- class excel2moodle.ui.appUi.ParseAllThread(questionDB, mainApp)[source]
Bases:
QRunnable
Parse the whole Spreadsheet. Start by reading the spreadsheet asynchron. When finished parse all Categories subsequently.
- Parameters:
questionDB (QuestionDB)
mainApp (MainWindow)
excel2moodle.ui.dialogs module
This Module hosts the various Dialog Classes, that can be shown from main Window.
- class excel2moodle.ui.dialogs.AboutDialog(parent)[source]
Bases:
QMessageBox
- Parameters:
parent (QWidget)
- staticMetaObject = PySide6.QtCore.QMetaObject("AboutDialog" inherits "QMessageBox": )
- class excel2moodle.ui.dialogs.ExportDialog(parent)[source]
Bases:
QDialog
- property exportFile: Path
- staticMetaObject = PySide6.QtCore.QMetaObject("ExportDialog" inherits "QDialog": )
excel2moodle.ui.treewidget module
- class excel2moodle.ui.treewidget.CategoryItem(parent, category)[source]
Bases:
QTreeWidgetItem
- Parameters:
category (Category)