Views

class views.D3View(parent, **kwargs)

Modified QWebView (via WebView) with d3 generated SVG image saving handler. Use this as a basis for any custom d3-based rendering views.

class views.HTMLView(parent, html=None, **kwargs)

Convenience wrapper for WebView for HTML viewing.

class views.QWebPageJSLog(parent=None, **kwargs)

Redirects Javascript errors to the console (STDOUT) for debugging.

class views.StaticHTMLView(parent, html=None, **kwargs)

Convenience wrapper for WebView for HTML viewing of non-dynamic content. This is used for tool help files which do not need to refresh on data update.

class views.TableView

Modified QTableView with additional metadata for internal use.

class views.ViewManager(parent, **kwargs)

Manager class for the tool views.

Inherits from QTabWidget to focusing tabs on add and unfocus-on-refresh. The QTabWidget method is overridden to wrap addView. All other QTabWidget methods and attributes are available.

addTab(widget, name, **kwargs)

Overridden to redirect addTab calls to addView method. Do not use.

addView(widget, name, focused=True, unfocus_on_refresh=False, **kwargs)

Add a view to this view manager.

Adds the specified widget to the ViewManager under a named tab.

Parameters:
  • widget (object inherited from QWidget or views.BaseView) – The widget to add as a view.
  • name (str) – The name of the widget, will be shown on the tab and used as a data-redirector selector.
Return type:

int tab/view index

autoSelect()

Autoselect one of the current views.

Iterates through all current views and selects the first that is not flagged _unfocus_on_refresh. This is used primarily to unfocus the help tabs following successful data calculation.

class views.WebView(parent, **kwargs)

Modified QWebView with internal navigation handling, loadfinished-resize triggers for SVG, HTML, etc.

Previous topic

API Reference

Next topic

Threads

This Page