Skip to content
Snippets Groups Projects
Select Git revision
  • 3c8a86e54e93fc077c9a866da3e7b07f6153389b
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

init_iplt.py

Blame
  • user avatar
    valerio authored
    git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1743 5a81b35b-ba03-0410-adc8-b2c5c5119f08
    1f3788ff
    History
    init_iplt.py 805 B
    from ost import gui
    import sip
    from ost.img import *
    import ost.img.alg as alg
    
    from PyQt4 import QtGui, QtCore
    from ost.gui.init_menubar import _InitMenuBar
    
    
    def Viewer(image,title=""):
      app=gui.GostyApp.Instance()
      viewer=app.CreateDataViewer(image)
      app.perspective.main_area.AddWidget(title, viewer)
      return viewer
    
    def _InitPanels(app, panels):
      panels.AddWidgetToPool('ost.gui.PythonShell', 1)
      if not panels.Restore("img/ui/perspective/panels"):
        panels.AddWidget(gui.PanelPosition.BOTTOM_PANEL, app.py_shell)
    
    def _InitIPLTNextGen():
      app=gui.GostyApp.Instance()
      app.SetAppTitle("IPLT - Iplt Next Generation")
      main_area=app.perspective.main_area
      _InitPanels(app, app.perspective.panels)
      _InitMenuBar(app.perspective.GetMenuBar())
      app.perspective.Restore()
    
    _InitIPLTNextGen()