[PyCrust-cvs] PyCrust shell.py,1.118,1.119
Brought to you by:
pobrien
|
From: <po...@us...> - 2003-03-30 20:47:30
|
Update of /cvsroot/pycrust/PyCrust
In directory sc8-pr-cvs1:/tmp/cvs-serv26726
Modified Files:
shell.py
Log Message:
Show calltip in tab, even when turned off in shell.
Index: shell.py
===================================================================
RCS file: /cvsroot/pycrust/PyCrust/shell.py,v
retrieving revision 1.118
retrieving revision 1.119
diff -C2 -d -r1.118 -r1.119
*** shell.py 29 Mar 2003 02:42:01 -0000 1.118
--- shell.py 30 Mar 2003 20:47:25 -0000 1.119
***************
*** 328,333 ****
command = self.GetTextRange(stoppos, currpos) + '('
self.write('(')
! if self.autoCallTip:
! self.autoCallTipShow(command)
else:
# Allow the normal event handling to take place.
--- 328,332 ----
command = self.GetTextRange(stoppos, currpos) + '('
self.write('(')
! self.autoCallTipShow(command)
else:
# Allow the normal event handling to take place.
***************
*** 819,822 ****
--- 818,825 ----
self.CallTipCancel()
(name, argspec, tip) = self.interp.getCallTip(command)
+ if tip:
+ dispatcher.send(signal='Shell.calltip', sender=self, calltip=tip)
+ if not self.autoCallTip:
+ return
if argspec:
startpos = self.GetCurrentPos()
***************
*** 831,835 ****
# fallback.
tippos = max(tippos, fallback)
- dispatcher.send(signal='Shell.calltip', sender=self, calltip=tip)
self.CallTipShow(tippos, tip)
--- 834,837 ----
|