12345678910111213141516171819202122232425262728293031323334 |
- <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html><head><title>Python: event</title>
- </head><body bgcolor="#f0f0f8">
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
- <tr bgcolor="#7799ee">
- <td valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>event</strong></big></big></font></td
- ><td align=right valign=bottom
- ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table>
- <p><tt>The event module handles delayed function calls.</tt></p>
- <p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#eeaa77">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
-
- <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
- <td width="100%"><dl><dt><a name="-interrupt_events_involving"><strong>interrupt_events_involving</strong></a>(...)</dt><dd><tt><a href="#-interrupt_events_involving">interrupt_events_involving</a>(thing)<br>
- <br>
- Interrupt all events involving a given object, room, or character.</tt></dd></dl>
- <dl><dt><a name="-start_event"><strong>start_event</strong></a>(...)</dt><dd><tt><a href="#-start_event">start_event</a>(owner, delay, event_func, data=None, arg='')<br>
- <br>
- Queue a new delayed event, to go off after delay seconds. Events are<br>
- cancelled when their owner is extracted. Owners can be characters, <br>
- objects, rooms, or None. The event function should take three arguments:<br>
- the event owner, the event data, and the string argument. Data is an<br>
- optional argument that can be of any type. Arg is an optional argument<br>
- that must be a string.</tt></dd></dl>
- <dl><dt><a name="-start_update"><strong>start_update</strong></a>(...)</dt><dd><tt>Deprecated. For repeating events, use events that manually re-queue<br>
- their selves.</tt></dd></dl>
- </td></tr></table>
- </body></html>
|