Glue Logo
stable
  • Installing and running glue
  • Getting started
  • Advanced User Interface Guide
  • Using the IPython terminal in Glue
  • Working with Data objects
  • Starting Glue from Python
  • Working with non-glue data objects
  • Visualizing Astronomical Dendrograms
  • Introduction to customizing/extending glue
  • List of available plugins
  • Configuring Glue via a startup file
  • Customizing your Glue environment
  • Distributing your own plugin package
  • Customizing the coordinate system of a data object
  • Programmatically configuring viewers
  • Writing a simple custom data viewer
  • Watching data for changes
  • Custom fitting plugins
  • Unit conversion in glue
  • Writing a custom viewer for glue
  • Writing a custom viewer for glue with Qt
  • Writing a custom viewer for glue with Qt and Matplotlib
  • Custom tools for viewers and custom toolbars
  • Defining your own data objects
  • Demo Videos
  • Frequently Asked Questions
  • Getting Help with Glue
  • Known issues and solutions
  • The selection/subset framework
  • The communication framework
  • The linking framework
  • Developer Guide
  • API
    • Core Data
    • User Interface
      • glue.viewers.common.viewer Module
      • glue.viewers.common.qt.data_viewer Module
      • glue.viewers.common.qt.base_widget Module
      • glue.viewers.matplotlib.state Module
      • glue.viewers.matplotlib.layer_artist Module
      • glue.viewers.matplotlib.qt.data_viewer Module
      • glue.core.layer_artist Module
      • glue.viewers.common.state Module
      • glue.viewers.common.layer_artist Module
      • glue.viewers.common.tool Module
        • Classes
      • glue.viewers.matplotlib.mouse_mode Module
      • glue.viewers.matplotlib.toolbar_mode Module
      • glue.viewers.matplotlib.qt.toolbar_mode Module
      • glue.viewers.common.qt.toolbar Module
      • glue.viewers.matplotlib.mpl_axes Module
      • glue.viewers.matplotlib.viewer Module
      • glue.viewers.matplotlib.qt.toolbar Module
      • glue.viewers.scatter.viewer Module
      • glue.viewers.scatter.state Module
      • glue.viewers.scatter.qt Package
      • glue.viewers.profile.viewer Module
      • glue.viewers.profile.state Module
      • glue.viewers.profile.qt Package
      • glue.viewers.image.viewer Module
      • glue.viewers.image.state Module
      • glue.viewers.image.qt Package
      • glue.viewers.histogram.viewer Module
      • glue.viewers.histogram.state Module
      • glue.viewers.histogram.qt Package
      • glue.viewers.table.qt Package
      • glue.viewers.custom.qt.custom_viewer Module
      • glue.core.application_base Module
      • glue.app.qt.application Module
      • glue Package
    • Utilities
    • Plugins
Glue
  • API
  • DropdownTool
  • Edit on GitHub

DropdownTool¶

class glue.viewers.common.tool.DropdownTool(*args, **kwargs)[source]¶

Bases: Tool

A base class for all tools that show a drop-down menu.

Attributes Summary

action_text

enabled

A property that callback functions can be added to.

icon

shortcut

status_tip

tool_id

tool_tip

Methods Summary

activate()

Fired when the toolbar button is activated

close()

menu_actions()

List of QtWidgets.QActions to be attached to this tool as a context menu.

Attributes Documentation

action_text = None¶
enabled¶

A property that callback functions can be added to.

When a callback property changes value, each callback function is called with information about the state change. Otherwise, callback properties behave just like normal instance variables.

CallbackProperties must be defined at the class level. Use the helper function add_callback() to attach a callback to a specific instance of a class with CallbackProperties

Parameters:
default

The initial value for the property

docstringstr

The docstring for the property

getter, setterfunc

Custom getter and setter functions (advanced)

icon = None¶
shortcut = None¶
status_tip = None¶
tool_id = None¶
tool_tip = None¶

Methods Documentation

activate()¶

Fired when the toolbar button is activated

close()¶
menu_actions()¶

List of QtWidgets.QActions to be attached to this tool as a context menu.

Previous Next

© Copyright 2012-2019, Chris Beaumont, Thomas Robitaille, Michelle Borkin. Revision 1481b7f8.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: stable
Versions
latest
stable
v0.8.x
v0.8.0
v0.7.2
v0.7.1
v0.7.x
v0.7.0
rtd
main
Downloads
On Read the Docs
Project Home
Builds