def _create_lut_fired(self):
     from tvtk import util
     tk = 'wx' if ETSConfig.toolkit.lower().startswith('wx') else 'qt'
     script = os.path.join(os.path.dirname(util.__file__),
                           tk + '_gradient_editor.py')
     subprocess.Popen([sys.executable, script])
     auto_close_message('Launching LUT editor in separate process ...')
Exemple #2
0
def open_help_index(*args):
    """ Open the mayavi user manual index in a browser.
    """
    # If the HTML_DIR was found, bring up the documentation in a
    # web browser.  Otherwise, bring up an error message.
    if HTML_DIR:
        auto_close_message("Opening help in web browser...")
        browser_open(join(HTML_DIR, 'index.html'))
    else:
        browser_open('https://docs.enthought.com/mayavi/mayavi/')
Exemple #3
0
def open_help_index(*args):
    """ Open the mayavi user manual index in a browser.
    """
    # If the HTML_DIR was found, bring up the documentation in a
    # web browser.  Otherwise, bring up an error message.
    if HTML_DIR:
        auto_close_message("Opening help in web browser...")
        browser_open(join(HTML_DIR, 'index.html'))
    else:
        browser_open('https://docs.enthought.com/mayavi/mayavi/')
Exemple #4
0
def open_help_index():
    """ Open the mayavi user manual index in a browser.
    """
    # If the HTML_DIR was found, bring up the documentation in a
    # web browser.  Otherwise, bring up an error message.
    if HTML_DIR:
        auto_close_message("Opening help in web browser...")
        browser_open(join(HTML_DIR, 'index.html'))
    else:
        error("Could not find the user guide in your installation " \
            "or the source tree.")
Exemple #5
0
 def _create_lut_fired(self):
     from tvtk import util
     script = os.path.join(os.path.dirname(util.__file__),
                           'wx_gradient_editor.py')
     subprocess.Popen([sys.executable, script])
     auto_close_message('Launching LUT editor in separate process ...')
 def _create_lut_fired(self):
     from tvtk import util
     script = os.path.join(os.path.dirname(util.__file__),
                           'wx_gradient_editor.py')
     subprocess.Popen([sys.executable, script])
     auto_close_message('Launching LUT editor in separate process ...')
Exemple #7
0
 def perform(self, event):
     """ Performs the action. """
     auto_close_message("Opening help in web browser...")
     browser_open(url='http://www.connectomeviewer.org/documentation', decorated = True)
Exemple #8
0
 def perform(self, event):
     """ Performs the action. """
     auto_close_message("Opening help in web browser...")
     browser_open(url='http://www.connectomeviewer.org/documentation',
                  decorated=True)