<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: class privateMessage</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><strong>start.privateMessage</strong> = <a name="start.privateMessage">class privateMessage</a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="privateMessage-ShowMessageAsTextPm"><strong>ShowMessageAsTextPm</strong></a>(self, txt)</dt><dd><tt>add txt to the buffer with the time and color<br> :param txt: message from sever<br> :return:</tt></dd></dl> <dl><dt><a name="privateMessage-ShowMessageErreur"><strong>ShowMessageErreur</strong></a>(self, txt)</dt><dd><tt>Show with color message from the server with error<br> :param txt:message from server<br> :return: message with color</tt></dd></dl> <dl><dt><a name="privateMessage-UpdateChatP"><strong>UpdateChatP</strong></a>(self)</dt><dd><tt>update the chat box<br> :return:</tt></dd></dl> <dl><dt><a name="privateMessage-__init__"><strong>__init__</strong></a>(self, main, s, pmPerson, pmPerso)</dt><dd><tt>new windows for a private conversation<br> :param main:<br> :param s:<br> :param pmPerson:<br> :param pmPerso:<br> :return:</tt></dd></dl> <dl><dt><a name="privateMessage-accept"><strong>accept</strong></a>(self)</dt><dd><tt>if a user accept a pm with another user<br> :return:</tt></dd></dl> <dl><dt><a name="privateMessage-codeNb"><strong>codeNb</strong></a>(self, txt)</dt><dd><tt>converted a return code (info and succes) in the message<br> :param txt: code from the server<br> :return: info, String return from server</tt></dd></dl> <dl><dt><a name="privateMessage-getTimeStamp"><strong>getTimeStamp</strong></a>(self)</dt><dd><tt>the time format: H:M<br> :return: time</tt></dd></dl> <dl><dt><a name="privateMessage-htmlToText"><strong>htmlToText</strong></a>(self, html)</dt><dd><tt>converted some characters written by the user (html tag, smiley)<br> :param html: message written by an user<br> :return: html, message converted</tt></dd></dl> <dl><dt><a name="privateMessage-reject"><strong>reject</strong></a>(self)</dt><dd><tt>if a user reject a pm conversation<br> :return:</tt></dd></dl> <dl><dt><a name="privateMessage-send"><strong>send</strong></a>(self)</dt><dd><tt>send the message written in the pm conversation<br> :return:</tt></dd></dl> <hr> Data descriptors defined here:<br> <dl><dt><strong>__dict__</strong></dt> <dd><tt>dictionary for instance variables (if defined)</tt></dd> </dl> <dl><dt><strong>__weakref__</strong></dt> <dd><tt>list of weak references to the object (if defined)</tt></dd> </dl> </td></tr></table> </body></html>