Changeset 1af348e in sasview for src/sas/qtgui/GuiManager.py


Ignore:
Timestamp:
Aug 4, 2016 9:37:22 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
af7078b
Parents:
39551a68
Message:

Added python console as a docked widget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/GuiManager.py

    r8cb6cd6 r1af348e  
    535535    def actionPython_Shell_Editor(self): 
    536536        """ 
    537         """ 
    538         print("actionPython_Shell_Editor TRIGGERED") 
    539         pass 
     537        Display the Jupyter console as a docked widget. 
     538        """ 
     539        from IPythonWidget import IPythonWidget 
     540        terminal = IPythonWidget() 
     541 
     542        # Add the console window as another docked widget 
     543        self.ipDockWidget = QtGui.QDockWidget("IPython", self._workspace) 
     544        self.ipDockWidget.setObjectName("IPythonDockWidget") 
     545        self.ipDockWidget.setWidget(terminal) 
     546        self._workspace.addDockWidget(QtCore.Qt.RightDockWidgetArea, 
     547                                      self.ipDockWidget) 
    540548 
    541549    def actionImage_Viewer(self): 
Note: See TracChangeset for help on using the changeset viewer.