UI.newComponent module

Module to implement new component by group contribution methods UI interfaces

  • newComponent: Main dialog class with common functionality

  • UI_Contribution: Definition for group contribution

  • View_Contribution: Dialog to show the properties of a group contribution

class UI.newComponent.newComponent[source]

Bases: QDialog

Main dialog class with common functionality

Methods

calculo(**kwargs)

Does UI changes when make new component calculation

changeParams(parametro, valor)

Update new component when change any parameters

loadUI()

Define common widget for chid class

save()

Save new componente in user database

showDetails()

Show details of new component

loadUI()[source]

Define common widget for chid class

save()[source]

Save new componente in user database

changeParams(parametro, valor)[source]

Update new component when change any parameters

calculo(**kwargs)[source]

Does UI changes when make new component calculation

showDetails()[source]

Show details of new component

class UI.newComponent.View_Contribution(cmp=None, parent=None)[source]

Bases: QDialog

Dialog to show the properties of a group contribution

Methods

fill(cmp)

Add cmp properties in widgets

setReadOnly(boolean)

Set readonly state for child widgets

__init__(cmp=None, parent=None)[source]

Constructor cmp: optional new component to show the properties

setReadOnly(boolean)[source]

Set readonly state for child widgets

fill(cmp)[source]

Add cmp properties in widgets

class UI.newComponent.Ui_Contribution(metodo, parent=None)[source]

Bases: newComponent

Dialog to define hypotethical new component with several group contribucion methods

Methods

Order()

Show/Hide group of undesired order

ViewDetails

add()

Add the current selected item to the list of group

borrar([indice])

Remove some group contribution from added group list

calculo(**kwargs)

Calculate function

cellChanged(i, j)

Process the user manual count of group contribution changed

clear()

Clear widgets from dialog

nogroupCheckToggled(boolean)

Set advanced properties input status for Klincewitcz method

selectChanged(i)

The add button is only enabled when the group list have any selected row

ViewDetails

alias of View_Contribution

__init__(metodo, parent=None)[source]

Metodo: name of group contribution method: Joback, Constantinou, Wilson, Marrero, Elliott, Ambrose, …

Order()[source]

Show/Hide group of undesired order

nogroupCheckToggled(boolean)[source]

Set advanced properties input status for Klincewitcz method

borrar(indice=None)[source]

Remove some group contribution from added group list

clear()[source]

Clear widgets from dialog

cellChanged(i, j)[source]

Process the user manual count of group contribution changed

selectChanged(i)[source]

The add button is only enabled when the group list have any selected row

add()[source]

Add the current selected item to the list of group

calculo(**kwargs)[source]

Calculate function