Back to index

python3.2  3.2.2
Classes | Functions | Variables
idlelib.CallTipWindow Namespace Reference

Classes

class  CallTip
class  container

Functions

def __init__
def calltip_show
def calltip_hide
def main

Variables

string HIDE_VIRTUAL_EVENT_NAME = "<<calltipwindow-hide>>"
tuple HIDE_SEQUENCES = ("<Key-Escape>", "<FocusOut>")
string CHECKHIDE_VIRTUAL_EVENT_NAME = "<<calltipwindow-checkhide>>"
tuple CHECKHIDE_SEQUENCES = ("<KeyRelease>", "<ButtonRelease>")
int CHECKHIDE_TIME = 100
string MARK_RIGHT = "calltipwindowregion_right"
 text
 calltip

Detailed Description

A CallTip window class for Tkinter/IDLE.

After ToolTip.py, which uses ideas gleaned from PySol
Used by the CallTips IDLE extension.

Class Documentation

class idlelib::CallTipWindow::container

Definition at line 143 of file CallTipWindow.py.


Function Documentation

Definition at line 144 of file CallTipWindow.py.

00144 
00145     def __init__(self):
00146         root = Tk()
00147         text = self.text = Text(root)
00148         text.pack(side=LEFT, fill=BOTH, expand=1)
00149         text.insert("insert", "string.split")
00150         root.update()
00151         self.calltip = CallTip(text)
00152 
00153         text.event_add("<<calltip-show>>", "(")
00154         text.event_add("<<calltip-hide>>", ")")
00155         text.bind("<<calltip-show>>", self.calltip_show)
00156         text.bind("<<calltip-hide>>", self.calltip_hide)
00157 
00158         text.focus_set()
00159         root.mainloop()

def idlelib.CallTipWindow.calltip_hide (   self,
  event 
)

Definition at line 163 of file CallTipWindow.py.

00163 
00164     def calltip_hide(self, event):
00165         self.calltip.hidetip()

def idlelib.CallTipWindow.calltip_show (   self,
  event 
)

Definition at line 160 of file CallTipWindow.py.

00160 
00161     def calltip_show(self, event):
00162         self.calltip.showtip("Hello world")

Definition at line 166 of file CallTipWindow.py.

00166 
00167 def main():
00168     # Test code
00169     c=container()


Variable Documentation

Definition at line 150 of file CallTipWindow.py.

tuple idlelib.CallTipWindow.CHECKHIDE_SEQUENCES = ("<KeyRelease>", "<ButtonRelease>")

Definition at line 12 of file CallTipWindow.py.

Definition at line 13 of file CallTipWindow.py.

Definition at line 11 of file CallTipWindow.py.

tuple idlelib.CallTipWindow.HIDE_SEQUENCES = ("<Key-Escape>", "<FocusOut>")

Definition at line 10 of file CallTipWindow.py.

Definition at line 9 of file CallTipWindow.py.

string idlelib.CallTipWindow.MARK_RIGHT = "calltipwindowregion_right"

Definition at line 15 of file CallTipWindow.py.

Definition at line 146 of file CallTipWindow.py.