MCPcopy Create free account
hub / github.com/ActiveState/code / spawn

Method spawn

recipes/Python/576688_ToolTip_for_Tkinter/recipe-576688.py:43–52  ·  view source on GitHub ↗

Spawn the ToolTip. This simply makes the ToolTip eligible for display. Usually this is caused by entering the widget Arguments: event: The event that called this funciton

( self, event=None )

Source from the content-addressed store, hash-verified

41 self.wdgt.bind( '<Motion>', self.move, '+' )
42
43 def spawn( self, event=None ):
44 """
45 Spawn the ToolTip. This simply makes the ToolTip eligible for display.
46 Usually this is caused by entering the widget
47
48 Arguments:
49 event: The event that called this funciton
50 """
51 self.visible = 1
52 self.after( int( self.delay * 1000 ), self.show ) # The after function takes a time argument in miliseconds
53
54 def show( self ):
55 """

Callers 6

__init__Method · 0.80
runMethod · 0.80
fireMethod · 0.80
recipe-577491.pyFile · 0.80
execute_with_promptFunction · 0.80
recipe-302323.pyFile · 0.80

Calls 1

afterMethod · 0.45

Tested by

no test coverage detected