tools.UI_Preferences module

Pychemqt has many option to customize for the user, in this dialog user can change default options as desired. The dialog has several tab to organized configuration

General

General main program options

  • Hightlight color in input

  • Read only color in input

  • Number of recent files shows in menu

  • Load last sessions project at start

  • Show tray icon

UI_Preferences_1_General

PFD

Proces Flow Diagram (PFD) options

  • Background brush color

  • Background brush style

  • Input stream color

  • Output stream color

  • Line format options (color, width, join, cap, dash)

  • PFD resolution

UI_Preferences_2_PFD

Tooltips in PFD

When the mouse is over a entity in PFD, a popup dialog with calculated properties can be shown with the properties defined in this tab

UI_Preferences_3_TooltipPFD.png

Tooltips in units

When the mouse is over a entry with units support, a popup dialog with other units values can be shown as defined in this tab

UI_Preferences_4_TooltipUnits.png

Numeric Format

Prefered numeric format when show a number in any text

UI_Preferences_5_NumericFormat.png

The options include the normal format options

  • Fixed decimal point defining total and decimal digits

  • Significant figures

  • Exponential format by default

  • Exponential format for big/small values

  • Show sign in positives values

  • Show thousand separator (for currency for example)

UI_Preferences_5_NumericFormatConfig.png

Pseudocomponents

Define preferred methods to calculate properties when define oil pseudocomponents

  • Molecular weight

  • Critic properties

  • Critic volume

  • Acentric factor

  • Zc

  • Boiling temperature

  • Specific gravity

  • Refractive index

  • PNA composition

  • Destilate curve conversion

  • Hydrogen composition %

UI_Preferences_6_Pseudocomponent.png

Applications

External applications call from pychemqt

  • Calculator

  • Text file viewer

  • Use external pdf viewer, pychemqt has a simple internal pdf viewer

  • Shell used along options (background, foreground color, use ipython)

UI_Preferences_7_Applications.png

Plotting

Plot can be configurated using the complete set of matplotlib config options

  • Can be use the matlotlib predefined styled

  • Customizing any of option available in matplotlibrc

UI_Preferences_8_Matplotlib.png

qtelemental

Configuration avilable for the periodic table tools

  • Properties to define color squeme

  • Color scale

UI_Preferences_9_qtelemental.png

MEoS

Advanced properties library calculation options

  • Use external libraries (Coolprop, RefProp) if it’s availables

  • Saturation line style (width, dash, color, marker)

  • Isolines shows in plots, as range or a list of lines values including line style config

  • Plot definition using more point (more slow)

  • Draw grid

  • 3D plot options (draw mesh, mesh type, colormap, wireframe line config)

UI_Preferences_10_MEoS.png

Psychrometric tools

Configuration for the psychrometric tool

  • Chart type (ASHRAE, Mollier)

  • Use virial or external application if availables

  • Saturation line style (width, dash, color, marker)

  • Crux line style (width, dash, color, marker)

  • Isolines shows in plots, as range or a list of lines values including line style config, label and its config

UI_Preferences_11_Psychrometric.png

Moody chart

Moody chart configuration

  • Method

  • Calculate fanning friction factor (by default it calculates the darcy friction factor)

  • ε/D isolines

  • Reliative roughtness line style (width, dash, color, marker)

  • Crux line style (width, dash, color, marker)

  • Grid line style (width, dash, color, marker)

UI_Preferences_12_Moody.png

Drag sphere chart

Drag sphere chart configuration

  • Method

  • Drag coefficient line style (width, dash, color, marker)

  • Crux line style (width, dash, color, marker)

  • Grid line style (width, dash, color, marker)

UI_Preferences_13_DragSphere.png

Standing-Katz chart

Standing-Katz chart configuration

  • Method

  • Tr lines

  • Reduced temperature line style (width, dash, color, marker)

  • Crux line style (width, dash, color, marker)

  • Grid line style (width, dash, color, marker)

UI_Preferences_14_StandingKatz.png

Openbabel

Configuration of libray openbabel to adjust the generated image

  • Bond color

  • Background color

  • Heteroatoms in color

  • Atoms details (show all atoms, only the terminal atoms)

  • Thicker bond lines

  • Asymetric double bond

  • Show atom index

UI_Preferences_15_Openbabel.png

API reference

Library to show/configure pychemqt general preferences

In addition to other tabs defined in other modules:

  • lib.plot.ConfPlot: Matplotlib configuration

  • lib.openbabel.ConfBabel: Openbabel image generation configuration

  • tools.UI_Tables.prefMEOS.Widget: mEoS parameter configuration

  • UI.prefPFD.Widget: Flow Diagram configuration

  • UI.prefPetro.Widget: Petro new component configuration

  • tools.UI_psychrometry.Config: Phychrometric chart configuration

tools.UI_Preferences.translate(context: str, sourceText: str, disambiguation: str = None, n: int = -1) str
class tools.UI_Preferences.ConfGeneral(config=None, parent=None)[source]

Bases: QDialog

General configuration options

Methods

value(config)

Update ConfigParser instance with the config

__init__(config=None, parent=None)[source]
value(config)[source]

Update ConfigParser instance with the config

class tools.UI_Preferences.ConfTooltipUnit(config, parent=None)[source]

Bases: QDialog

Tooltip with unit alternate value configuration

Methods

checkShow_Toggled(boolean)

Enable/Disable widgets

fill(magnitud, tabla, config)

Fill the the table with the data

systems(unitSet, boolean)

Check the units defined in the unit set

value(config)

Update ConfigParser instance with the config

__init__(config, parent=None)[source]
static fill(magnitud, tabla, config)[source]

Fill the the table with the data

checkShow_Toggled(boolean)[source]

Enable/Disable widgets

systems(unitSet, boolean)[source]

Check the units defined in the unit set

value(config)[source]

Update ConfigParser instance with the config

class tools.UI_Preferences.ConfTooltipEntity(config, parent=None)[source]

Bases: QDialog

Entity properties in popup window configuration

Methods

fill(equipo, tabla, config)

Fill the the table with the data

value(config)

Update ConfigParser instance with the config

__init__(config, parent=None)[source]
fill(equipo, tabla, config)[source]

Fill the the table with the data

value(config)[source]

Update ConfigParser instance with the config

class tools.UI_Preferences.ConfFormat(config=None, parent=None)[source]

Bases: QTableWidget

Numeric format configuration

Methods

showConfDialog(fila)

Show dialog with numeric format configuration

txt(formato)

Get the string format text

value(config)

Update ConfigParser instance with the config

__init__(config=None, parent=None)[source]
showConfDialog(fila)[source]

Show dialog with numeric format configuration

static txt(formato)[source]

Get the string format text

value(config)[source]

Update ConfigParser instance with the config

class tools.UI_Preferences.ConfApplications(config=None, parent=None)[source]

Bases: QDialog

External applications configuration

Methods

value(config)

Update ConfigParser instance with the config

__init__(config=None, parent=None)[source]
value(config)[source]

Update ConfigParser instance with the config

class tools.UI_Preferences.Preferences(config=None, parent=None)[source]

Bases: QDialog

Preferences main dialog

Methods

getIndex(item)

Get index of item

value()

Return value for wizard

classes = [('pychemqt.png', <class 'tools.UI_Preferences.ConfGeneral'>, 'General'), ('button/PFD.png', <class 'UI.prefPFD.Widget'>, 'PFD'), ('button/tooltip.png', <class 'tools.UI_Preferences.ConfTooltipEntity'>, 'Tooltips in PFD'), ('button/tooltip.png', <class 'tools.UI_Preferences.ConfTooltipUnit'>, 'Tooltips in units'), ('button/format_numeric.png', <class 'tools.UI_Preferences.ConfFormat'>, 'Numeric format'), ('button/oil.png', <class 'UI.prefPetro.Widget'>, 'Pseudocomponents'), ('button/applications.png', <class 'tools.UI_Preferences.ConfApplications'>, 'Applications'), ('button/plot.png', <class 'tools.UI_confPlot.ConfPlot'>, 'Plotting'), ('button/periodicTable.png', <class 'tools.qtelemental.Config'>, 'Elemental table'), ('button/tables.png', <class 'tools.UI_Tables.prefMEOS.Widget'>, 'mEoS'), ('button/psychrometric.png', <class 'tools.UI_psychrometry.Config'>, 'Psychrometric chart'), ('button/moody.png', (<class 'plots.moody.Config'>, <class 'plots.drag.Config'>, <class 'plots.standing.Config'>), 'Chart'), ('chemistry/grupo18.png', <class 'lib.openbabel.ConfBabel'>, 'Openbabel')]
__init__(config=None, parent=None)[source]

Constructor, opcional config parameter to input project config

getIndex(item)[source]

Get index of item

value()[source]

Return value for wizard