excel2moodle.ui package
Here is the relevant stuff for the UI
Submodules
excel2moodle.ui.appUi module
This Module 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 tho pyside6-uic
command,
which generates the python code from the .ui
file
- class excel2moodle.ui.appUi.EqCheckerWindow[source]
Bases:
QWidget
- onButRunCheck(catN, qN)[source]
Is Triggered by the
Run Check now
Button and runs the Equation Check.- Return type:
None
- Parameters:
catN (int)
qN (int)
- staticMetaObject = PySide6.QtCore.QMetaObject("EqCheckerWindow" inherits "QWidget": )
- class excel2moodle.ui.appUi.MainWindow(settings, testDB)[source]
Bases:
QMainWindow
- Parameters:
settings (Settings)
testDB (QuestionDB)
- onParseAll()[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
- onSelectionChanged(item, col)[source]
Whenever the selection changes the total of selected points needs to be recalculated.
- staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits "QMainWindow": Methods: #39 type=Slot, signature=onSheetPathChanged(PyObject), parameters=PyObject #40 type=Slot, signature=onAbout() #41 type=Slot, signature=onSelectionChanged() #42 type=Slot, signature=toggleQuestionSelectionState() #43 type=Slot, signature=onButGenTest() #44 type=Slot, signature=onButSpreadsheet() #45 type=Slot, signature=onParseAll() #46 type=Slot, signature=previewQ() #47 type=Slot, signature=onButOpenEqChecker() )
excel2moodle.ui.dialogs module
This Module hosts the various Dialog Classes, that can be shown from main Window
excel2moodle.ui.questionPreviewDialog module
excel2moodle.ui.settings module
- class excel2moodle.ui.settings.Settings[source]
Bases:
QSettings
- ensureSettings()[source]
Makes sure all necessary settings are made
if not yet inside the settings file, they will be appended
- Return type:
None
- shPathChanged
- staticMetaObject = PySide6.QtCore.QMetaObject("Settings" inherits "QSettings": Methods: #4 type=Signal, signature=shPathChanged(PyObject), parameters=PyObject )