src.UI.ui module

class src.UI.ui.UI(main, parent=None)

Bases: PyQt5.QtWidgets.QMainWindow, Ui_MainWindow

The actual UI widgets

Parameters
  • baseUIWidget ([type]) – QT standard template

  • baseUIClass ([type]) – QT standard template

Returns

so that the Provee object (main) can use it

Return type

The UI object

addModelToList(name)
addProjectors()
addWordsToTables(wordTuples)
clearWordTable()
clickedMainButton()

Disable/enable the left menu

closeWindow()

Close the window

property gripSize
handleConnections()

Handle the toolbar connections (Maybe transport this to main.py)

maximizeWindow()

Maximize the window

minimizeWindow()

Minimize the window

mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
progressBarValue(value, widget, color)

Calculate the angle of the circular loading and set it

Parameters
  • value (int) – New Percentage

  • widget (QWidget) – The widget of the progress Bar

  • color (string) – The used color

resizeEvent(self, QResizeEvent)
setGripSize(size)
setValue(labelPercentage, progressBarName, color, value)

Set the value of a circular progress bar (KNN, Projector or Transformer)

Parameters
  • labelPercentage (int) – New Percentage

  • progressBarName (QWidget) – The widget of the progress Bar

  • color (string) – The used color

  • value (int) – The new progress percentage

setVisualiser(widget)

Put the visualiser in the main stackedwidget, and select it from

Parameters

widget (QWidget) – The visualier

setupPercentageLoaders()

Set up the circular percentage loaders

setupWordTable()
swapSettingsScreen()

Being able to switch the main screen (between visualiser and config widget (WIP))

updateFittingPercentage(percentage)

Update the Projector progress percentage

Parameters

percentage (int) – percentage

updateGrips()
updateKNNPercentage(percentage)

Update the KNN progress percentage

Parameters

percentage (int) – percentage

updateTransformPercentage(percentage)

Update the Transformer progress percentage

Parameters

percentage (int) – percentage