nspyre.gui.app

nspyre application Qt GUI settings.

Module Contents

Classes

nspyreApp

Create a Qt application object with the default nspyre settings.

class nspyre.gui.app.nspyreApp(app_name='nspyre', palette=nspyre_palette, font=nspyre_font)

Create a Qt application object with the default nspyre settings.

Typical usage example:

from nspyre import nspyreApp

app = nspyreApp()
some_widget = SomeWidget()
some_widget.show()
app.exec()
Parameters:
  • app_name (str) – Display name of the application.

  • palette (pyqtgraph.Qt.QtGui.QPalette) – Qt palette.

  • font (pyqtgraph.Qt.QtGui.QFont) – QFont to use for the application.

exec(*args, **kwargs)

Run the GUI event loop.