Popular recipes tagged "meta:requires=rpyc" and "remote"http://code.activestate.com/recipes/tags/meta:requires=rpyc+remote/popular/2017-01-24T20:23:45-08:00ActiveState Code RecipesTkinter remote debugging (Python)
2017-01-24T20:23:45-08:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580721-tkinter-remote-debugging/
<p style="color: grey">
Python
recipe 580721
by <a href="/recipes/users/4189907/">Miguel Martínez López</a>
(<a href="/recipes/tags/debugging/">debugging</a>, <a href="/recipes/tags/remote/">remote</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 6.
</p>
<p>This trick requires rpyc.</p>
<p>You can install rpyc typing:</p>
<blockquote>
<p>pip install rpyc</p>
</blockquote>
<p>Run the code below and in another interpreter write:</p>
<pre class="prettyprint"><code>import rpyc
c = rpyc.classic.connect("localhost")
c.execute("from Tkinter import Label; label=Label(app, text='a label')")
c.execute("label.pack()")
app = c.eval("app")
app.responsive_button.invoke()
</code></pre>