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:
closeEvent(self, event: PySide6.QtGui.QCloseEvent, /) None[source]
connectEvents()[source]
Return type:

None

onButGenTest()[source]
Return type:

None

onButOpenEqChecker()[source]
onButSpreadsheet()[source]
onOpenDocumentation()[source]
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

onSheetPathChanged(sheet)[source]
Return type:

None

Parameters:

sheet (Path)

previewQ()[source]
Return type:

None

setIncludeCategoriesSetting()[source]
setStatus(status)[source]
staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits "QMainWindow": Methods:   #39 type=Slot, signature=onSheetPathChanged(PyObject), parameters=PyObject   #40 type=Slot, signature=onOpenDocumentation()   #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() )
toggleQuestionSelectionState(state)[source]
updateLog(log)[source]
Return type:

None

excel2moodle.ui.dialogs module

This Module hosts the various Dialog Classes, that can be shown from main Window

class excel2moodle.ui.dialogs.QuestinoPreviewDialog(parent, question)[source]

Bases: QDialog

Parameters:
setAnswers()[source]
Return type:

None

setPicture()[source]
Return type:

None

setText()[source]
Return type:

None

setupQuestion()[source]
Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("QuestinoPreviewDialog" inherits "QDialog": )
class excel2moodle.ui.dialogs.QuestionVariantDialog(parent, question)[source]

Bases: QDialog

Parameters:

question (Question)

property categoryWide
staticMetaObject = PySide6.QtCore.QMetaObject("QuestionVariantDialog" inherits "QDialog": )
property variant

excel2moodle.ui.questionPreviewDialog module

class excel2moodle.ui.questionPreviewDialog.Ui_QuestionPrevDialog[source]

Bases: object

retranslateUi(QuestionPrevDialog)[source]
setupUi(QuestionPrevDialog)[source]

excel2moodle.ui.settings module

class excel2moodle.ui.settings.Settings[source]

Bases: QSettings

get(value, default=None)[source]
set(setting, value)[source]
setSpreadsheet(sheet)[source]
Return type:

None

Parameters:

sheet (Path)

shPathChanged
staticMetaObject = PySide6.QtCore.QMetaObject("Settings" inherits "QSettings": Methods:   #4 type=Signal, signature=shPathChanged(PyObject), parameters=PyObject )

excel2moodle.ui.treewidget module

class excel2moodle.ui.treewidget.CategoryItem(parent, category)[source]

Bases: QTreeWidgetItem

Parameters:

category (Category)

getCategory()[source]
Return type:

Category

getMaxVariants()[source]
Return type:

int

iterateChildren()[source]
class excel2moodle.ui.treewidget.QuestionItem(parent, question)[source]

Bases: QTreeWidgetItem

Parameters:

question (Question)

getQuestion()[source]
Return type:

Question

excel2moodle.ui.variantDialog module

class excel2moodle.ui.variantDialog.Ui_Dialog[source]

Bases: object

retranslateUi(Dialog)[source]
setupUi(Dialog)[source]

excel2moodle.ui.windowEquationChecker module

class excel2moodle.ui.windowEquationChecker.Ui_EquationChecker[source]

Bases: object

retranslateUi(EquationChecker)[source]
setupUi(EquationChecker)[source]

excel2moodle.ui.windowMain module

class excel2moodle.ui.windowMain.Ui_MoodleTestGenerator[source]

Bases: object

retranslateUi(MoodleTestGenerator)[source]
setupUi(MoodleTestGenerator)[source]