Example #1
0
 def show_syspath(self):
     """Show sys.path contents"""
     editor = DictEditor()
     editor.setup(self.shell.get_syspath(),
                  title="sys.path",
                  readonly=True,
                  width=600,
                  icon='syspath.png')
     self.dialog_manager.show(editor)
Example #2
0
 def show_syspath(self):
     """Show sys.path"""
     editor = DictEditor()
     editor.setup(sys.path,
                  title="sys.path",
                  readonly=True,
                  width=600,
                  icon=ima.icon('syspath'))
     self.dialog_manager.show(editor)
Example #3
0
 def dictedit(instance, item, value, parent):
     from spyderlib.widgets.dicteditor import DictEditor
     editor = DictEditor(parent)
     value_was_none = value is None
     if value_was_none:
         value = {}
     editor.setup(value)
     if editor.exec_():
         return editor.get_value()
     else:
         if value_was_none:
             return
         return value
Example #4
0
 def dictedit(instance, item, value, parent):
     from spyderlib.widgets.dicteditor import DictEditor
     editor = DictEditor(parent)
     value_was_none = value is None
     if value_was_none:
         value = {}
     editor.setup(value)
     if editor.exec_():
         return editor.get_value()
     else:
         if value_was_none:
             return
         return value
Example #5
0
 def show_syspath(self):
     """Show sys.path"""
     editor = DictEditor()
     editor.setup(sys.path, title="sys.path", readonly=True,
                  width=600, icon='syspath.png')
     self.dialog_manager.show(editor)
Example #6
0
 def show_syspath(self):
     """Show sys.path contents"""
     editor = DictEditor()
     editor.setup(self.shell.get_syspath(), title="sys.path", readonly=True,
                  width=600, icon=ima.icon('syspath'))
     self.dialog_manager.show(editor)