UI.mainWindow module¶
- class UI.mainWindow.TabWidget[source]¶
Bases:
QTabWidgetCustom QTableWidget to populate a empty page with a welcome and information message
Methods
paintEvent(event)Special paint event
- class UI.mainWindow.TreeEquipment(parent=None)[source]¶
Bases:
QTreeWidgetCustom QTreWidget to list the equipment and stream from the active project
Methods
updateList(items)Update list with project items
- class UI.mainWindow.FlowLayout(margin=0, spacing=0, parent=None)[source]¶
Bases:
QLayoutDynamic layout to reorder object using all available space
Methods
addItem(item)Add item to layout
count()Return count of item
doLayout(rect, testOnly)Dynamic generation of layout
Limit expanding direction to horizontal orientation
Change default value
heightForWidth(width)Get height from layout
itemAt(index)Return item at position index
Get minimum size of layout
setGeometry(rect)Special geomtry from layout
sizeHint()Set size hint to minimum size
takeAt(index)Return item at position index and remove from layout
- class UI.mainWindow.UI_pychemqt(parent=None)[source]¶
Bases:
QMainWindowMain window UI definition
- Attributes:
currentConfigGet config of current project
currentFilenameGet file name of current project
currentMdiGet mdi area of current project
currentSceneGet current graphicscene
currentViewGet current graphicsview
idTabGet id of current tab
Methods
Show preferences dialog
Dynamic generation of edit menu
Dynamic generation of PFD menu
Dynamic generation of recent files menu
Dynamic generation of window menu
acerca()Show basic information about pychemqt including version of library used
acercaQt()Show info about qt library
activeControl(boolean)Enable/Disable actions if any project is loaded
addEquipment(equipo)Add equipment to PFD of current project
addItem(tipo[, check])Add item to PFD of current project tipo: type of item * square: square item, defining 2 points of diagonal * ellipse: ellipse item, enclosed in a square defined with 2 points * Input stream to PFD, defined only by one point * Output stream to PFD, defined only by one point * Strem: Stream to join several equipment
addRecentFile(fname)Populate recent file menu
addText()Add text item to PFD of current project
bip()Show bip parameters of selected compounds
Show external calculator application
Upgrade UI when change preferences
changeStatusThermo(conf)Update status thermo for pfd subwindow
changeWindow(window)Update status info when change subwindow
Clear recent open files list
Actions to be done when close a window in a tab mdi
closeEvent([event])Catch main close event to do actions like avoid lost changes or save main program settings
contextListMenu(event)Generation of context menu for list toolbox
currentTabChanged(index)Actions to be done when change current tab in main window
dialogConfig(UIconfig)Generic procedure for launch a config dialog
Open tools/doi app with scientific references
fileClose(index)Actions to be done when close a project in mainwindow
fileNew()Actions to be done when create a new project
fileOpen([fname])Open project
fileSave([indice])Save project to file
Save all open project with changes
fileSaveAs([indice])Save current project with a new name
getScene(index)Get graphicscene of tab with selected index
getView(index)Get graphics view of tab with selected index
help()Open pychemqt documentation
launch(dlg, *args)Generic method to launch external application
loadFile([fname])Actions to be done when load a project file
loadPFD(mdiarea)Actions to be done to load a PFD
log()Open log file
meos()Launch main dialog of UI_Tables tool
overview()Show a overview window of PFD or hide if exist
Plot temperature dependent properties of selected compounds
Enable/Disable save actions is current tab is modified
Save PFD screenshot in a file
Selection changed from both PFD and item treewidget to let both stay syncronized with same selected items
tabModified(index)Set icon as modified for tab with index specified
terminal()Show instrospection console
updateConfig(conf)Do changes in mainwindow at any config change
updatePreferences(preferences)Update preferences in program and save to file
updateStatus(text[, success])Función que añade entradas al cuadro de status text: texto a mostrar success: boolean que indica si va todo bien
Close active subwindow
Minimize all subwindows
Restore all subwindows to last window size and position
windowSelect(index)Show the selected subwindow
wizard()Show a wizard dialog for project configuration
zoom([value])Change zoom value of PFD
- idNew = 0¶
- config = []¶
- dirty = []¶
- filename = []¶
- pfd = []¶
- property currentScene¶
Get current graphicscene
- property currentView¶
Get current graphicsview
- property currentMdi¶
Get mdi area of current project
- property currentConfig¶
Get config of current project
- property currentFilename¶
Get file name of current project
- property idTab¶
Get id of current tab
- closeEvent(event=None)[source]¶
Catch main close event to do actions like avoid lost changes or save main program settings
- updateStatus(text, success=True)[source]¶
Función que añade entradas al cuadro de status text: texto a mostrar success: boolean que indica si va todo bien
- zoom(value=None)[source]¶
Change zoom value of PFD
- Parameters:
- Valuefloat
Zoom value or any of this str + : Zoom in view - : Zoom out view Dialog : Show dialog to set custom zoom value
- selectionChanged()[source]¶
Selection changed from both PFD and item treewidget to let both stay syncronized with same selected items
- addItem(tipo, check=True)[source]¶
Add item to PFD of current project tipo: type of item
square: square item, defining 2 points of diagonal
ellipse: ellipse item, enclosed in a square defined with 2 points
Input stream to PFD, defined only by one point
Output stream to PFD, defined only by one point
Strem: Stream to join several equipment