def guiCreate(self):
    '\n        Add gui components to self.contents\n\n        Do not fill the controls with actual values here. This is executed\n        upon creation and guiScene etc are not yet available.\n\n        '
    self.ui = Ui_BallastSolver()
    self.ui.setupUi(self.contents)
    self._vesselNode = None
    self._bs = None
    self.ui.pushButton.clicked.connect(self.determineRequiredBallast)
    self.ui.pushButton_2.clicked.connect(self.solveBallast)
    self.ui.doubleSpinBox.valueChanged.connect(self.determineRequiredBallast)
Add gui components to self.contents

Do not fill the controls with actual values here. This is executed
upon creation and guiScene etc are not yet available.
def guiCreate(self):
    '\n        Add gui components to self.contents\n\n        Do not fill the controls with actual values here. This is executed\n        upon creation and guiScene etc are not yet available.\n\n        '
    self.ui = Ui_BallastSolver()
    self.ui.setupUi(self.contents)
    self._vesselNode = None
    self._bs = None
    self.ui.pushButton.clicked.connect(self.determineRequiredBallast)
    self.ui.pushButton_2.clicked.connect(self.solveBallast)
    self.ui.doubleSpinBox.valueChanged.connect(self.determineRequiredBallast)