def on_about(self): from cytoflow import __version__ as cf_version from fcsparser import __version__ as fcs_version from pandas.version import version as pd_version from numpy.version import version as np_version from numexpr import __version__ as numexp_version from seaborn import __version__ as sns_version from matplotlib import __version__ as mpl_version from pyface import __version__ as py_version from envisage import __version__ as env_version from traits import __version__ as trt_version from traitsui import __version__ as trt_ui_version text = ["<b>Cytoflow {0}</b>".format(cf_version), "<p>", "fcsversion {0}".format(fcs_version), "pandas {0}".format(pd_version), "numpy {0}".format(np_version), "numexpr {0}".format(numexp_version), "seaborn {0}".format(sns_version), "matplotlib {0}".format(mpl_version), "pyface {0}".format(py_version), "envisage {0}".format(env_version), "traits {0}".format(trt_version), "traitsui {0}".format(trt_ui_version), "Icons from the <a href=http://tango.freedesktop.org>Tango Desktop Project</a>", "<a href=https://thenounproject.com/search/?q=setup&i=14287>Settings icon</a> by Paulo Sa Ferreira from <a href=https://thenounproject.com>The Noun Project</a>", "Cuvette image from Wikimedia Commons user <a href=http://commons.wikimedia.org/wiki/File:Hellma_Large_cone_cytometry_cell.JPG>HellmaUSA</a>"] dialog = AboutDialog(parent = self.window.control, title = "About", image = ImageResource('cuvette'), additions = text) dialog.open()
def on_about(self): from cytoflow import __version__ as cf_version from fcsparser import __version__ as fcs_version from pandas.version import __version__ as pd_version from numpy.version import version as np_version from numexpr import __version__ as numexp_version from seaborn import __version__ as sns_version from matplotlib import __version__ as mpl_version from pyface import __version__ as py_version from envisage import __version__ as env_version from traits import __version__ as trt_version from traitsui import __version__ as trt_ui_version text = [ "<b>Cytoflow {0}</b>".format(cf_version), "<p>", "fcsversion {0}".format(fcs_version), "pandas {0}".format(pd_version), "numpy {0}".format(np_version), "numexpr {0}".format(numexp_version), "seaborn {0}".format(sns_version), "matplotlib {0}".format(mpl_version), "pyface {0}".format(py_version), "envisage {0}".format(env_version), "traits {0}".format(trt_version), "traitsui {0}".format(trt_ui_version), "Icons from the <a href=http://tango.freedesktop.org>Tango Desktop Project</a>", "<a href=https://thenounproject.com/search/?q=setup&i=14287>Settings icon</a> by Paulo Sa Ferreira from <a href=https://thenounproject.com>The Noun Project</a>", "Cuvette image from Wikimedia Commons user <a href=http://commons.wikimedia.org/wiki/File:Hellma_Large_cone_cytometry_cell.JPG>HellmaUSA</a>" ] dialog = AboutDialog(parent=self.window.control, title="About", image=ImageResource('cuvette'), additions=text) dialog.open()
def on_about(self): from cytoflow import __version__ as cf_version from FlowCytometryTools import __version__ as fct_version from GoreUtilities import __version__ as gu_version from pandas.version import version as pd_version from numpy.version import version as np_version from numexpr import version as numexp_version from seaborn import __version__ as sns_version from matplotlib import __version__ as mpl_version from pyface import __version__ as py_version from envisage import __version__ as env_version from traits import __version__ as trt_version from traitsui import __version__ as trt_ui_version text = ["<b>Cytoflow {0}</b>".format(cf_version), "<p>", "FlowCytometryTools {0}".format(fct_version), "GoreUtilities {0}".format(gu_version), "pandas {0}".format(pd_version), "numpy {0}".format(np_version), "numexpr {0}".format(numexp_version), "seaborn {0}".format(sns_version), "matplotlib {0}".format(mpl_version), "pyface {0}".format(py_version), "envisage {0}".format(env_version), "traits {0}".format(trt_version), "traitsui {0}".format(trt_ui_version), "Icons from the <a href=http://tango.freedesktop.org/>Tango Desktop Project</a>", "Cuvette image from Wikimedia Commons user <a href=http://commons.wikimedia.org/wiki/File:Hellma_Large_cone_cytometry_cell.JPG>HellmaUSA</a>"] dialog = AboutDialog(parent = self.window.control, title = "About", image = ImageResource('cuvette'), additions = text) dialog.open()
def action_about(self, info): dialog = AboutDialog(image=find_icon('camera-video', size=64)) dialog.additions = [ 'Beams 0.1', u'© 2010, 2011, 2012 P. F. Chimento', 'MIT License' ] dialog.open()
def about_dialog(self, ui_info): img = ImageResource('about', search_path=[os.getcwd()+'/', './', '/users/noel/vl3/']) text=['VL3 - View Lidar 3 - v%d.%d\n' % (major_version, minor_version), u'© VNoel 2001-2011 - LMD/CNRS/IPSL\n', 'Based on input and help from M. Chiriaco, A. Delaval, L. Klenov, Y. Morille, C. Pietras, S. Turquety.', 'Using the Enthought Tool Suite (ETS), Python.'] dlg = AboutDialog(parent=ui_info.ui.control, additions=text, image=img) dlg.open()
def on_about_plugin(self, info): # Find the selected plugin plugin_id = info.object.cameras[info.object.camera_selection][0] plugin_info = info.object.plugins[plugin_id] dialog = AboutDialog() dialog.additions = [ plugin_info['name'], plugin_info['description'], 'Copyright {copyright year} {author}'.format(**plugin_info) ] dialog.open()
def on_about_plugin(self, info): # Find the selected plugin plugin_id = info.object.cameras[info.object.camera_selection][0] plugin_info = info.object.plugins[plugin_id].load().plugin_info dialog = AboutDialog() dialog.additions = [ plugin_info['name'], plugin_info['description'], 'Copyright {copyright year} {author}'.format(**plugin_info) ] dialog.open()
def _check_new(self): try: req = requests.get('http://www.tgxnet.no/cc-ver.json', timeout=1.0) req.raise_for_status() verinfo = req.json() except (requests.exceptions.RequestException): return running = StrictVersion(__init__.__version__) print(__init__.__version__) newest = StrictVersion(verinfo['currentVersion']) if newest > running: inf = AboutDialog() text = "You are running version {} of ConsumerCheck, version {} is now available.".format( running, newest) inf.information(text, title='New version')
def _about_dialog_default(self): """ Initialize the About Dialog """ #from vtk import vtkVersion #vtk_version = vtkVersion().GetVTKVersion() #'VTK version %s' % (vtk_version), from cviewer.version import version adds = [ 'Connectome Viewer - Version %s' % (version), '', 'Copyright © 2009-2011, Ecole Polytechnique Fédérale de Lausanne (EPFL) and', 'University Hospital Center and University of Lausanne (UNIL-CHUV)', '', 'Author: Stephan Gerhard <em>info [at] connectomics.org</em>', 'Contributors: <em>see README file</em>', '', 'This program comes with ABSOLUTELY NO WARRANTY', 'It is licensed under Modified BSD License', ] about_dialog = AboutDialog( parent=self.workbench.active_window.control, image=ImageResource('cviewer_about.png', search_path=self._image_path), additions=adds, ) return about_dialog
def _about_dialog_default(self): """ Trait initializer. """ about_dialog = AboutDialog(parent=self.workbench.active_window.control, image=ImageResource('about')) return about_dialog
def on_about(self): versions = self._get_package_versions() text = ["<b>Cytoflow {0}</b>".format(versions['cytoflow']), "<p>"] ver_text = ["{0} {1}".format(key, value) for key, value in versions.items()] text.extend(ver_text) text.extend(["Icons from the <a href=http://tango.freedesktop.org>Tango Desktop Project</a>", "<a href=https://thenounproject.com/search/?q=setup&i=14287>Settings icon</a> by Paulo Sa Ferreira from <a href=https://thenounproject.com>The Noun Project</a>", "<a href=http://www.freepik.com/free-photos-vectors/background>App icon from Starline - Freepik.com</a>", "Cuvette image from Wikimedia Commons user <a href=http://commons.wikimedia.org/wiki/File:Hellma_Large_cone_cytometry_cell.JPG>HellmaUSA</a>"]) dialog = AboutDialog(text = text, parent = self.window.control, title = "About", image = ImageResource('cuvette'), additions = text) dialog.open()
def on_about(self): versions = self._get_package_versions() text = ["<b>Cytoflow {0}</b>".format(versions['cytoflow']), "<p>"] ver_text = ["{0} {1}".format(key, value) for key, value in versions.iteritems()] text.extend(ver_text) text.extend(["Icons from the <a href=http://tango.freedesktop.org>Tango Desktop Project</a>", "<a href=https://thenounproject.com/search/?q=setup&i=14287>Settings icon</a> by Paulo Sa Ferreira from <a href=https://thenounproject.com>The Noun Project</a>", "<a href=http://www.freepik.com/free-photos-vectors/background>App icon from Starline - Freepik.com</a>", "Cuvette image from Wikimedia Commons user <a href=http://commons.wikimedia.org/wiki/File:Hellma_Large_cone_cytometry_cell.JPG>HellmaUSA</a>"]) dialog = AboutDialog(text = text, parent = self.window.control, title = "About", image = ImageResource('cuvette'), additions = text) dialog.open()
class IBVPyWorkbenchApplication(WorkbenchApplication): """ The mayavi application. """ #### 'IApplication' interface ############################################# # The application's globally unique Id. id = 'simvisage.ibvpy' #### 'WorkbenchApplication' interface ##################################### # Branding information. # # The icon used on window title bars etc. icon = ImageResource('m2.ico', search_path=[IMG_DIR]) # The name of the application (also used on window title bars etc). name = 'Simvisage.IBVPy' # Define an about dialog about_dialog = AboutDialog() ########################################################################### # 'WorkbenchApplication' interface. ########################################################################### def _about_dialog_default(self): """ Trait initializer. """ about_dialog = AboutDialog( # parent = self.workbench.active_window.control, # image = ImageResource('m2_about.jpg', # search_path=[IMG_DIR]), additions=['Authors: Rostislav Chudoba', 'and Jakub Jerabek', 'and Alexander Scholzen'], ) return about_dialog def _splash_screen_default(self): """ Trait initializer. """ if preference_manager.root.show_splash_screen: splash_screen = SplashScreen( image=ImageResource('m2_about.jpg', search_path=[IMG_DIR]), show_log_messages=False, ) else: splash_screen = None return splash_screen
def _about_dialog_default(self): """ Trait initializer. """ about_dialog = AboutDialog( # parent = self.workbench.active_window.control, # image = ImageResource('m2_about.jpg', # search_path=[IMG_DIR]), additions=['Authors: Rostislav Chudoba', 'and Jakub Jerabek', 'and Alexander Scholzen'], ) return about_dialog
def _about_dialog_default(self): """ Trait initializer. """ from mayavi import api from vtk import vtkVersion vtk_version = vtkVersion().GetVTKVersion() about_dialog = AboutDialog( parent=self.workbench.active_window.control, image=ImageResource('m2_about.jpg', search_path=[IMG_DIR]), additions=[ 'Authors: Prabhu Ramachandran', 'and Gael Varoquaux', '', 'Mayavi version %s \t - \t VTK version %s' % (api.__version__, vtk_version) ], ) return about_dialog
## ## Distributed under the terms of GPL-3.0 license ## https://opensource.org/licenses/GPL-3.0 ######################################################################## #from traits.etsconfig.api import ETSConfig #ETSConfig.toolkit = 'qt4' from version import version as ffnetui_version from pyface.image_resource import ImageResource from pyface.api import AboutDialog about = AboutDialog(parent = None, image = ImageResource('ffnetui256x256'), additions = ['<b>ffnetui-%s</b>' %ffnetui_version, 'This is user interface for ffnet - ', 'feed-forward neural network for python', '<a href=ffnet.sourceforge.net>http://ffnet.sourceforge.net</a>', '', 'Copyright © 2005-2016', '<b>Marek Wojciechowski</b>', 'Technical University of Lodz, Poland', '<a href=mailto:[email protected]>[email protected]</a>', '', 'Distributed under GPL-3.0 license', '<a href=opensource.org/licenses/GPL-3.0>https://opensource.org/licenses/GPL-3.0</a>', '', '']) if __name__ == "__main__": about.open()
def _about_dialog_default(self): """ Trait initializer. """ return AboutDialog(image=ImageResource('about'))
def action_about(self, info): dialog = AboutDialog(image=find_icon("camera-video", size=64)) dialog.additions = ["Beams 0.1", u"© 2010, 2011, 2012 P. F. Chimento", "MIT License"] dialog.open()
def about(self, ui_info): text = ['rfspace.py', 'VNoel 2011-2014 CNRS', 'CERES EBAF-TOA map viewer', 'SIRTA'] dlg = AboutDialog(parent=ui_info.ui.control, additions=text) dlg.open()
def about(self, info): text = 'An editor for reStructured Text documentation.' AboutDialog(additions=[text]).open()