Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:rproepp/spykeviewer into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rproepp committed Dec 25, 2015
2 parents 60bef1c + 3506e1f commit 3e7ccee
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Version 0.4.2
-------------
* Data file path transform for starting plugins remotely.
* Various bugfixes and compatibility with Spyder 2.3.0

Version 0.4.1
-------------
Expand Down
Binary file added doc/source/img/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/img/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Pröpper, R. and Obermayer, K. (2013). Spyke Viewer: a flexible and extensible
platform for electrophysiological data analysis.
*Front. Neuroinform.* 7:26. doi: 10.3389/fninf.2013.00026

The following screenshots illustrate the functionality of the program:

.. image:: /img/screenshot1.png
.. image:: /img/screenshot2.png

Contents:

.. toctree::
Expand Down
4 changes: 2 additions & 2 deletions spykeviewer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.4.1'
__version__ = '0.4.2'

import matplotlib
matplotlib.use('Qt4Agg')
matplotlib.use('Qt4Agg')
5 changes: 4 additions & 1 deletion spykeviewer/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ def run_command(self, cmd, history=True, new_prompt=True):

self.console.set_codecompletion_auto(True)
self.console.set_calltips(True)
self.console.setup_calltips(size=600, font=font)
try:
self.console.setup_calltips(size=600, font=font)
except AttributeError: # Not needed for spyderlib >= 2.3.0
pass
self.console.setup_completion(size=(370, 240), font=font)

self.consoleDock.setWidget(self.console)
Expand Down
38 changes: 30 additions & 8 deletions spykeviewer/ui/plugin_editor_dock.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,20 @@
from spyderlib.utils.module_completion import moduleCompletion \
as module_completion
except ImportError: # Spyder >= 2.2.0beta3
from spyderlib.utils.module_completion import module_completion
from spyderlib.utils.dochelpers import getsignaturesfromtext
try:
from spyderlib.utils.module_completion import module_completion
except ImportError: # Spyder >= 2.3.0
try:
from spyderlib.utils.introspection.module_completion import \
module_completion
except ImportError: # Spyder >= 2.3.2
from spyderlib.utils.introspection import module_completion

try:
from spyderlib.utils.dochelpers import getsignaturesfromtext
except ImportError: # Spyder >= 2.3.0
from spyderlib.utils.dochelpers import getsignaturefromtext as \
getsignaturesfromtext
from spyderlib.widgets.findreplace import FindReplace


Expand Down Expand Up @@ -102,12 +114,22 @@ def _setup_editor(self):
font = QFont('Some font that does not exist')
font.setStyleHint(font.TypeWriter, font.PreferDefault)
editor = codeeditor.CodeEditor(self)
editor.setup_editor(
linenumbers=True, language='py',
scrollflagarea=False, codecompletion_enter=self.enter_completion,
tab_mode=False, edge_line=False, font=font,
codecompletion_auto=True, go_to_definition=True,
codecompletion_single=True, calltips=True)
try:
editor.setup_editor(
linenumbers=True, language='py',
scrollflagarea=False,
codecompletion_enter=self.enter_completion,
tab_mode=False, edge_line=False, font=font,
codecompletion_auto=True, go_to_definition=True,
codecompletion_single=True, calltips=True)
except TypeError: # codecompletion_single is gone in 2.3.0
editor.setup_editor(
linenumbers=True, language='py',
scrollflagarea=False,
codecompletion_enter=self.enter_completion,
tab_mode=False, edge_line=False, font=font,
codecompletion_auto=True, go_to_definition=True,
calltips=True)
editor.setCursor(Qt.IBeamCursor)
editor.horizontalScrollBar().setCursor(Qt.ArrowCursor)
editor.verticalScrollBar().setCursor(Qt.ArrowCursor)
Expand Down

0 comments on commit 3e7ccee

Please sign in to comment.