Skip to content
Snippets Groups Projects
Commit 7d56dc85 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Add qtgallery

parent 9585903c
No related branches found
No related tags found
1 merge request!367Add qtgallery
Pipeline #97004 passed
...@@ -54,6 +54,7 @@ To generate the documentation, the following additional packages are required: ...@@ -54,6 +54,7 @@ To generate the documentation, the following additional packages are required:
- [Sphinx-Gallery](https://sphinx-gallery.github.io/) - [Sphinx-Gallery](https://sphinx-gallery.github.io/)
- [mplsignal](https://mplsignal.readthedocs.io/) - [mplsignal](https://mplsignal.readthedocs.io/)
- [jupyters-sphinx](https://jupyter-sphinx.readthedocs.io/) - [jupyters-sphinx](https://jupyter-sphinx.readthedocs.io/)
- [qtgallery](https://github.com/ixjlyons/qtgallery)
### Using setuptools to create a package ### Using setuptools to create a package
......
...@@ -577,7 +577,7 @@ class ScheduleMainWindow(QMainWindow, Ui_MainWindow): ...@@ -577,7 +577,7 @@ class ScheduleMainWindow(QMainWindow, Ui_MainWindow):
'hide_exit_dialog' in settings. 'hide_exit_dialog' in settings.
""" """
settings = QSettings() settings = QSettings()
hide_dialog = settings.value("scheduler/hide_exit_dialog", False, bool) hide_dialog = settings.value("scheduler/hide_exit_dialog", True, bool)
ret = QMessageBox.StandardButton.Yes ret = QMessageBox.StandardButton.Yes
if not hide_dialog: if not hide_dialog:
......
...@@ -385,6 +385,9 @@ ...@@ -385,6 +385,9 @@
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="checked">
<bool>true</bool>
</property>
<property name="icon"> <property name="icon">
<iconset theme="view-close"> <iconset theme="view-close">
<normaloff>../../../.designer/backup</normaloff>../../../.designer/backup</iconset> <normaloff>../../../.designer/backup</normaloff>../../../.designer/backup</iconset>
......
...@@ -186,6 +186,7 @@ class Ui_MainWindow(object): ...@@ -186,6 +186,7 @@ class Ui_MainWindow(object):
self.menu_save_as.setObjectName("menu_save_as") self.menu_save_as.setObjectName("menu_save_as")
self.menu_exit_dialog = QtWidgets.QAction(MainWindow) self.menu_exit_dialog = QtWidgets.QAction(MainWindow)
self.menu_exit_dialog.setCheckable(True) self.menu_exit_dialog.setCheckable(True)
self.menu_exit_dialog.setChecked(True)
icon = QtGui.QIcon.fromTheme("view-close") icon = QtGui.QIcon.fromTheme("view-close")
self.menu_exit_dialog.setIcon(icon) self.menu_exit_dialog.setIcon(icon)
self.menu_exit_dialog.setObjectName("menu_exit_dialog") self.menu_exit_dialog.setObjectName("menu_exit_dialog")
......
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import shutil import shutil
import qtgallery
project = 'B-ASIC' project = 'B-ASIC'
copyright = '2020-2023, Oscar Gustafsson et al' copyright = '2020-2023, Oscar Gustafsson et al'
author = 'Oscar Gustafsson et al' author = 'Oscar Gustafsson et al'
...@@ -25,6 +28,7 @@ extensions = [ ...@@ -25,6 +28,7 @@ extensions = [
'sphinx_gallery.gen_gallery', 'sphinx_gallery.gen_gallery',
'numpydoc', # Needs to be loaded *after* autodoc. 'numpydoc', # Needs to be loaded *after* autodoc.
'jupyter_sphinx', 'jupyter_sphinx',
'qtgallery',
] ]
templates_path = ['_templates'] templates_path = ['_templates']
...@@ -66,4 +70,19 @@ sphinx_gallery_conf = { ...@@ -66,4 +70,19 @@ sphinx_gallery_conf = {
'filename_pattern': '.', 'filename_pattern': '.',
'doc_module': ('b_asic',), 'doc_module': ('b_asic',),
'reference_url': {'b_asic': None}, 'reference_url': {'b_asic': None},
'image_scrapers': (
'matplotlib',
qtgallery.qtscraper,
),
'reset_modules': (
'matplotlib',
qtgallery.reset_qapp,
),
}
qtgallery_conf = {
"xvfb_size": (640, 480),
"xvfb_color_depth": 24,
"xfvb_use_xauth": False,
"xfvb_extra_args": [],
} }
...@@ -41,3 +41,7 @@ sfg.set_execution_time_of_type(Addition.type_name(), 1) ...@@ -41,3 +41,7 @@ sfg.set_execution_time_of_type(Addition.type_name(), 1)
schedule = Schedule(sfg, cyclic=True) schedule = Schedule(sfg, cyclic=True)
schedule.show() schedule.show()
# %%
# To edit the schedule in the GUI use:
schedule.edit()
...@@ -4,3 +4,4 @@ numpydoc ...@@ -4,3 +4,4 @@ numpydoc
sphinx-gallery sphinx-gallery
mplsignal mplsignal
jupyter-sphinx jupyter-sphinx
qtgallery
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment