Skip to content

Commit

Permalink
Fix: setup_calltips does not exist in spyderlib >= 2.3.0, not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rproepp committed Sep 3, 2014
1 parent f7dacf6 commit eab009b
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit eab009b

Please sign in to comment.