Latest recipes tagged "chatbox"http://code.activestate.com/recipes/tags/chatbox/new/2017-02-23T22:47:16-08:00ActiveState Code Recipeschatbox megawidget for tkinter (Python)
2017-02-23T22:47:16-08:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580757-chatbox-megawidget-for-tkinter/
<p style="color: grey">
Python
recipe 580757
by <a href="/recipes/users/4189907/">Miguel Martínez López</a>
(<a href="/recipes/tags/chat/">chat</a>, <a href="/recipes/tags/chatbox/">chatbox</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 3.
</p>
<p>Chatbox megawidget.</p>
<p>Arguments:</p>
<ul>
<li><p>my_nick</p>
<p>Nick of user chatting</p></li>
<li><p>command</p>
<p>Callback to call when a message is sent</p></li>
<li><p>logging_file</p>
<p>File to log all the messages</p></li>
<li><p>topic</p>
<p>Topic for the chatbox</p></li>
<li><p>maximum_lines</p>
<p>Max lines to show</p></li>
<li><p>entry_controls</p>
<p>Builder of controls for the entry (optional)</p></li>
<li><p>tags</p>
<p>List of tag configurations for the Text widget</p></li>
</ul>
<p>Styling arguments:</p>
<ul>
<li><p>timestamp_template</p></li>
<li><p>scrollbar_background</p></li>
<li><p>scrollbar_troughcolor</p></li>
<li><p>history_background</p></li>
<li><p>history_font</p></li>
<li><p>history_padx</p></li>
<li><p>history_pady</p></li>
<li><p>history_width</p></li>
<li><p>entry_font</p></li>
<li><p>entry_background</p></li>
<li><p>entry_foreground</p></li>
<li><p>label_template</p></li>
<li><p>label_font</p></li>
</ul>