spinetoolbox.config

Application constants and style sheets

author:
  1. Savolainen (VTT)
date:

2.1.2018

Module Contents

spinetoolbox.config.REQUIRED_SPINE_ENGINE_VERSION = 0.4.0[source]
spinetoolbox.config.REQUIRED_SPINEDB_API_VERSION = 0.2.2[source]
spinetoolbox.config.LATEST_PROJECT_VERSION = 1[source]
spinetoolbox.config.INVALID_CHARS = ['<', '>', ':', '"', '/', '\\', '|', '?', '*', '.'][source]
spinetoolbox.config.INVALID_FILENAME_CHARS = ['<', '>', ':', '"', '/', '\\', '|', '?', '*'][source]
spinetoolbox.config._frozen[source]
spinetoolbox.config._path_to_executable[source]
spinetoolbox.config.APPLICATION_PATH[source]
spinetoolbox.config._program_root[source]
spinetoolbox.config.DEFAULT_WORK_DIR[source]
spinetoolbox.config.DOCUMENTATION_PATH[source]
spinetoolbox.config.PLUGINS_PATH[source]
spinetoolbox.config.TOOL_OUTPUT_DIR = output[source]
spinetoolbox.config._on_windows[source]
spinetoolbox.config._executable(name)[source]

Appends a .exe extension to name on Windows platform.

spinetoolbox.config.GAMS_EXECUTABLE[source]
spinetoolbox.config.GAMSIDE_EXECUTABLE[source]
spinetoolbox.config.JULIA_EXECUTABLE[source]
spinetoolbox.config.PYTHON_EXECUTABLE[source]
spinetoolbox.config.TOOL_TYPES = ['Julia', 'Python', 'GAMS', 'Executable'][source]
spinetoolbox.config.REQUIRED_KEYS = ['name', 'tooltype', 'includes'][source]
spinetoolbox.config.OPTIONAL_KEYS = ['description', 'short_name', 'inputfiles', 'inputfiles_opt', 'outputfiles', 'cmdline_args', 'execute_in_work'][source]
spinetoolbox.config.LIST_REQUIRED_KEYS = ['includes', 'inputfiles', 'inputfiles_opt', 'outputfiles'][source]
spinetoolbox.config.JL_REPL_TIME_TO_DEAD = 5.0[source]
spinetoolbox.config.JL_REPL_RESTART_LIMIT = 3[source]
spinetoolbox.config.PROJECT_FILENAME = project.json[source]
spinetoolbox.config.STATUSBAR_SS = QStatusBar{background-color: #EBEBE0;border-width: 1px;border-color: gray;border-style: groove;}[source]
spinetoolbox.config.SETTINGS_SS = #SettingsForm{background-color: ghostwhite;}QLabel{color: black;}QLineEdit{font-size: 11px;}QGroupBox{border: 2px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #80B0FF, stop: 1 #e6efff);border-radius: 5px;margin-top: 0.5em;}QGroupBox:title{border-radius: 2px; background-color: ghostwhite;subcontrol-origin: margin;subcontrol-position: top center;padding-top: 0px;padding-bottom: 0px;padding-right: 3px;padding-left: 3px;}QCheckBox{outline-style: dashed; outline-width: 1px; outline-color: white;}QPushButton{background-color: #505F69; border: 1px solid #29353d; color: #F0F0F0; border-radius: 4px; padding: 3px; outline: none;}QPushButton:disabled {background-color: #32414B; border: 1px solid #29353d; color: #787878; border-radius: 4px; padding: 3px;}QPushButton::menu-indicator {subcontrol-origin: padding; subcontrol-position: bottom right; bottom: 4px;}QPushButton:focus{background-color: #637683; border: 1px solid #148CD2;}QPushButton:hover{border: 1px solid #148CD2; color: #F0F0F0;}QPushButton:pressed{background-color: #19232D; border: 1px solid #19232D;}QSlider::groove:horizontal{background: #e1e1e1; border: 1px solid #a4a4a4; height: 5px; margin: 2px 0; border-radius: 2px;}QSlider::handle:horizontal{background: #fafafa; border: 1px solid #a4a4a4; width: 12px; margin: -5px 0; border-radius: 2px;}QSlider::add-page:horizontal{background: transparent;}QSlider::sub-page:horizontal{background: transparent;}[source]
spinetoolbox.config.ICON_TOOLBAR_SS = QToolBar{spacing: 6px; background: qlineargradient(x1: 1, y1: 1, x2: 0, y2: 0, stop: 0 #cce0ff, stop: 1 #66a1ff);padding: 3px;border-style: solid;}QToolButton{background-color: white;border-width: 1px;border-style: inset;border-color: darkslategray;border-radius: 2px;}QToolButton:pressed {background-color: lightGray;}QLabel{color:black;padding: 3px;}[source]
spinetoolbox.config.PARAMETER_TAG_TOOLBAR_SS[source]
spinetoolbox.config.TEXTBROWSER_SS = QTextBrowser {background-color: #19232D; border: 1px solid #32414B; color: #F0F0F0; border-radius: 2px;}QTextBrowser:hover,QTextBrowser:selected,QTextBrowser:pressed {border: 1px solid #668599;}[source]
spinetoolbox.config.MAINWINDOW_SS = QMainWindow::separator{width: 3px; background-color: lightgray; border: 1px solid white;}QPushButton{background-color: #505F69; border: 1px solid #29353d; color: #F0F0F0; border-radius: 4px; padding: 3px; outline: none; min-width: 75px;}QPushButton:disabled {background-color: #32414B; border: 1px solid #29353d; color: #787878; border-radius: 4px; padding: 3px;}QPushButton::menu-indicator {subcontrol-origin: padding; subcontrol-position: bottom right; bottom: 4px;}QPushButton:focus{background-color: #637683; border: 1px solid #148CD2;}QPushButton:hover{border: 1px solid #148CD2; color: #F0F0F0;}QPushButton:pressed{background-color: #19232D; border: 1px solid #19232D;}QToolButton:focus{border-color: black; border-width: 1px; border-style: ridge;}QToolButton:pressed{background-color: #f2f2f2;}QToolButton::menu-indicator{width: 0px;}QCheckBox{padding: 2px; spacing: 10px; outline-style: dashed; outline-width: 1px; outline-color: black;}QComboBox:focus{border-color: black; border-width: 1px; border-style: ridge;}QLineEdit:focus{border-color: black; border-width: 1px; border-style: ridge;}QTextEdit:focus{border-color: black; border-width: 1px; border-style: ridge;}QTreeView:focus{border-color: darkslategray; border-width: 2px; border-style: ridge;}[source]
spinetoolbox.config.TREEVIEW_HEADER_SS = QHeaderView::section{background-color: #ecd8c6; font-size: 12px;}[source]
spinetoolbox.config.PIVOT_TABLE_HEADER_COLOR = #efefef[source]