[Patches] [ python-Patches-525109 ] Extension to Calltips / Show attributes

noreply@sourceforge.net noreply@sourceforge.net
Mon, 11 Mar 2002 09:00:44 -0800


Patches item #525109, was opened at 2002-03-03 06:58
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=525109&group_id=5470

Category: IDLE
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Liebmann (mliebmann)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: Extension to Calltips / Show attributes

Initial Comment:
The attached files (unified diff files) implement a 
(quick and dirty but usefull) extension to IDLE 0.8 
(Python 2.2)

- Tested on WINDOWS 95/98/NT/2000 -

Similar to "CallTips" this extension shows (context 
sensitive) all available member functions and 
attributes of the current object after hitting 
the 'dot'-key.

The toplevel help widget now supports scrolling. (Key-
Up and Key-Down events)

...that is why I changed among else the first argument 
of 'showtip' from 'text string' to a 'list of text 
strings' ...

The 'space'-key is used to insert the topmost item of 
the help widget into an IDLE text window.

...the even handling seems to be a critical part of 
the current IDLE implementation. That is why I added 
the new functionallity as a patch of CallTips.py and 
CallTipWindow.py. May be you still have a better 
implementation ...

Greetings
Martin Liebmann

----------------------------------------------------------------------

Comment By: Martin Liebmann (mliebmann)
Date: 2002-03-07 16:41

Message:
Logged In: YES 
user_id=475133

Patched and more robust version of the extended files 
CallTips.py and CallTipWindows.py. (Now more compatible to 
earlier versions of python)



----------------------------------------------------------------------

Comment By: Martin Liebmann (mliebmann)
Date: 2002-03-03 17:02

Message:
Logged In: YES 
user_id=475133

'<Key-.>' must be substituted by '.' within CallTip.py !
( Linux do not support an event named <Key-.> )

Running idle on Linux, I found the warning, that 'import *' 
is not allowed within function '_dir_main' of CallTip.py ???
Nevertheless CallTips works fine on Linux

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=525109&group_id=5470