<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / EPC block - Tkinter]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=230&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=230"/>
	<updated>2016-10-07T15:56:04Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=230</id>
	<entry>
		<title type="html"><![CDATA[Re: EPC block - Tkinter]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1032#p1032"/>
		<content type="html"><![CDATA[<p>Hi Hendrik,<br />I have set cmd to </p><div class="codebox"><pre><code>su pi -c &quot;export DISPLAY=:0.0 &amp;&amp; python /rex/rexcore/alert_Tkinter.py&quot;</code></pre></div><p> and it works for me, the window appears on the HDMI screen. However, the RESET input of EPC does not work in this case.</p><p>Hope it helps somehow...</p><p>Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-10-07T15:56:04Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1032#p1032</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC block - Tkinter]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1029#p1029"/>
		<content type="html"><![CDATA[<p>Hi Hendrik,<br />thanks for reporting the error in email notification example. I have fixed that in our repository.</p><p>The EPC block is meant for running non-interactive scripts, which only take the input data, process it and generate output data. Running interactive scripts waiting for user input (confirmation of the alert) is not recommended. Anyways, the problem is that RexCore is running in the background as a service and therefore neither RexCore neither the script knows where to display the window/dialog. </p><p>I&#039;m sorry I&#039;m not able to give you more hints on this topic.</p><p>Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-10-07T14:59:16Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1029#p1029</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC block - Tkinter]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1025#p1025"/>
		<content type="html"><![CDATA[<p>Hi Tomas,</p><p>The EPC email notification example did not work for me; I found that I had to change &quot;headers = [&quot;From: &quot; + MAIL_USERNAME,&quot; to &quot;headers = [&quot;From: &quot; + SMTP_USERNAME, &quot; </p><p>as mentioned before I had to change ofns from &quot;epc_dataout.txt to &quot;epc_datain.txt&quot;. I am now able to sent emails, again, when using the EPC block, thanks.</p><p>See attached basic test script for Tkinter which does work when using cmd in terminal but not when using the EPC block.</p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/13/tk-script.png" alt="tk-script.png" /></span></p>]]></content>
		<author>
			<name><![CDATA[hendrik]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=13</uri>
		</author>
		<updated>2016-10-07T12:57:13Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1025#p1025</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC block - Tkinter]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1022#p1022"/>
		<content type="html"><![CDATA[<p>Hi Hendrik,</p><p>please, can you provide the Tkinter script you are about to run by EPC function block? Or any other demo python script which doesn&#039;t work for you either.</p><p>Did you try to run <a href="https://github.com/rexcontrols/REXexamples/tree/master/Function_blocks_Advanced/EPC_Email_Notification" rel="nofollow">EPC Email Notification example</a> without any changes? Does it work for you?</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-10-07T10:41:52Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1022#p1022</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC block - Tkinter]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1021#p1021"/>
		<content type="html"><![CDATA[<p>I have renamed ofns to &quot;epc_datain.txt&quot; and that seems to have cleared the error messages but I still cannot call the Tkinter script or any other script.</p>]]></content>
		<author>
			<name><![CDATA[hendrik]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=13</uri>
		</author>
		<updated>2016-10-07T10:05:34Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1021#p1021</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[EPC block - Tkinter]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1016#p1016"/>
		<content type="html"><![CDATA[<p>Hi,</p><p>I have created a few Tkinter scripts and I can call it with cmd (Unipi). I attempted to call it with the epc block but it does not work. According to the log the problem lies with the way I named the file? </p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/13/Rex-Log_20161006-1454.png" alt="Rex-Log_20161006-1454.png" /></span></p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/13/Tkinter.png" alt="Tkinter.png" /></span></p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/13/epc-Tk.png" alt="epc-Tk.png" /></span></p>]]></content>
		<author>
			<name><![CDATA[hendrik]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=13</uri>
		</author>
		<updated>2016-10-06T13:01:43Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1016#p1016</id>
	</entry>
</feed>
