GlueApplication¶
-
class
glue.app.qt.application.GlueApplication(data_collection=None, session=None)[source]¶ Bases:
glue.core.application_base.Application,PyQt5.QtWidgets.QMainWindowThe main GUI application for the Qt frontend
Attributes Summary
Returns True if there are no viewers and no data.
The number of open tabs
The name of each tab
A list of lists of open Data Viewers.
Methods Summary
add_datasets(self, \*args, \*\*kwargs)Utility method to interactively add datasets to the data_collection.
add_fixed_layout_tab(self, tab_cls)add_widget(self, new_widget[, label, tab, …])Add a widget to one of the tabs.
choose_new_data_viewer(self[, data])Create a new visualization window in the current tab
choose_new_fixed_layout_tab(self, \*args)Creates a new tab with a fixed layout
closeEvent(self, event)Emit a message to hub before closing.
close_tab(self, index[, warn])Close a tab window and all associated data viewers
dragEnterEvent(self, QDragEnterEvent)dropEvent(self, QDropEvent)exec_(self[, size, position, block, maximized])Show the GUI and start the application.
gather_current_tab(self, \*args)Arrange windows in current tab via tiling
get_tab_index(self, widget)has_terminal(self[, create_if_not])Returns True if the IPython terminal is present.
keyPressEvent(self, QKeyEvent)new_data_viewer(self, viewer_class[, data, …])Create a new data viewer, add it to the UI, and populate with data
new_tab(self, \*args)Spawn a new tab page
plugin_manager(self, \*args)redo(self, \*args)report_error(self, message, detail)Display an error in a modal
restore_session(path[, show])Reload a previously-saved session
restore_session_and_close(self, path[, warn])run_startup_action(self, name)screenshot(self, filename)Save a screenshot of the current application window to a file.
start(self[, size, position, block, maximized])Show the GUI and start the application.
tab(self[, index])undo(self, \*args)Attributes Documentation
-
viewers[source]¶ A list of lists of open Data Viewers.
Each inner list contains the viewers open on a particular tab.
Methods Documentation
-
add_datasets(self, *args, **kwargs)[source]¶ Utility method to interactively add datasets to the data_collection.
-
add_widget(self, new_widget, label=None, tab=None, hold_position=False)[source]¶ Add a widget to one of the tabs.
Returns the window that this widget is wrapped in.
-
choose_new_data_viewer(self, data=None)[source]¶ Create a new visualization window in the current tab
-
exec_(self, size=None, position=None, block=True, maximized=True)¶ Show the GUI and start the application.
- Parameters
- size(int, int) Optional
The default width/height of the application. If not provided, uses the full screen
- position(int, int) Optional
The default position of the application
-
new_data_viewer(self, viewer_class, data=None, state=None)[source]¶ Create a new data viewer, add it to the UI, and populate with data
-
static
restore_session(path, show=True)[source]¶ Reload a previously-saved session
- Parameters
- pathstr
Path to the file to load
- showbool, optional
If True (the default), immediately show the widget
- Returns
- app
glue.app.qt.application.GlueApplication The loaded application
- app
-