<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.phidgets.com/docs/index.php?action=history&amp;feed=atom&amp;title=Template%3ALanguage_-_Python_Editing_The_Examples</id>
	<title>Template:Language - Python Editing The Examples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.phidgets.com/docs/index.php?action=history&amp;feed=atom&amp;title=Template%3ALanguage_-_Python_Editing_The_Examples"/>
	<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;action=history"/>
	<updated>2026-04-18T03:10:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=30886&amp;oldid=prev</id>
		<title>Jdecoux: /* Editing the Examples */</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=30886&amp;oldid=prev"/>
		<updated>2019-03-01T16:13:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Editing the Examples&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:13, 1 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets can be found in our guide on [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Phidgets &lt;/del&gt;Programming Basics]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets can be found in our guide on [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Phidget &lt;/ins&gt;Programming Basics]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jdecoux</name></author>
	</entry>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=30883&amp;oldid=prev</id>
		<title>Jdecoux at 23:04, 28 February 2019</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=30883&amp;oldid=prev"/>
		<updated>2019-02-28T23:04:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:04, 28 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;follows &lt;/del&gt;in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/del&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#Write Code| Write Code&lt;/del&gt;]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;section&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;can be found &lt;/ins&gt;in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;our guide on &lt;/ins&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Phidgets Programming Basics&lt;/ins&gt;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jdecoux</name></author>
	</entry>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=29601&amp;oldid=prev</id>
		<title>Mparadis: Mparadis moved page Template:Python Editing The Examples to Template:Language - Python Editing The Examples</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=29601&amp;oldid=prev"/>
		<updated>2018-07-05T20:30:17Z</updated>

		<summary type="html">&lt;p&gt;Mparadis moved page &lt;a href=&quot;/docs/Template:Python_Editing_The_Examples&quot; class=&quot;mw-redirect&quot; title=&quot;Template:Python Editing The Examples&quot;&gt;Template:Python Editing The Examples&lt;/a&gt; to &lt;a href=&quot;/docs/Template:Language_-_Python_Editing_The_Examples&quot; title=&quot;Template:Language - Python Editing The Examples&quot;&gt;Template:Language - Python Editing The Examples&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:30, 5 July 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mparadis</name></author>
	</entry>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=29587&amp;oldid=prev</id>
		<title>Mparadis: Created page with &quot;== Editing the Examples ==  To get our example code to run in a custom application, simply remove the calls to &#039;&#039;AskForDeviceParameters&#039;&#039; and &#039;&#039;PrintEventDescriptions&#039;&#039;, and h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:Language_-_Python_Editing_The_Examples&amp;diff=29587&amp;oldid=prev"/>
		<updated>2018-07-05T18:58:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Editing the Examples ==  To get our example code to run in a custom application, simply remove the calls to &amp;#039;&amp;#039;AskForDeviceParameters&amp;#039;&amp;#039; and &amp;#039;&amp;#039;PrintEventDescriptions&amp;#039;&amp;#039;, and h...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Editing the Examples ==&lt;br /&gt;
&lt;br /&gt;
To get our example code to run in a custom application, simply remove the calls to &amp;#039;&amp;#039;AskForDeviceParameters&amp;#039;&amp;#039; and &amp;#039;&amp;#039;PrintEventDescriptions&amp;#039;&amp;#039;, and hard-code the addressing parameters for your application.&lt;br /&gt;
&lt;br /&gt;
If you are unsure what values to use for the addressing parameters, check the [[Finding The Addressing Information]] page.&lt;br /&gt;
&lt;br /&gt;
For instance:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
channelInfo = AskForDeviceParameters(ch)&lt;br /&gt;
        &lt;br /&gt;
ch.setDeviceSerialNumber(channelInfo.deviceSerialNumber)&lt;br /&gt;
ch.setHubPort(channelInfo.hubPort)&lt;br /&gt;
ch.setIsHubPortDevice(channelInfo.isHubPortDevice)&lt;br /&gt;
ch.setChannel(channelInfo.channel)   &lt;br /&gt;
        &lt;br /&gt;
if(channelInfo.netInfo.isRemote):&lt;br /&gt;
    ch.setIsRemote(channelInfo.netInfo.isRemote)&lt;br /&gt;
    if(channelInfo.netInfo.serverDiscovery):&lt;br /&gt;
        Net.enableServerDiscovery(PhidgetServerType.PHIDGETSERVER_DEVICEREMOTE)&lt;br /&gt;
    else:&lt;br /&gt;
        Net.addServer(&amp;quot;Server&amp;quot;, channelInfo.netInfo.hostname,&lt;br /&gt;
            channelInfo.netInfo.port, channelInfo.netInfo.password, 0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Might become:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
ch.setDeviceSerialNumber(370114)&lt;br /&gt;
ch.setHubPort(2)&lt;br /&gt;
ch.setIsHubPortDevice(1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that you can leave out any parameter not relevant to your application for simplicity.&lt;br /&gt;
&lt;br /&gt;
You can then manipulate the rest of the code as your application requires. A more in-depth description of programming with Phidgets follows in the [[#Write Code| Write Code]] section.&lt;/div&gt;</summary>
		<author><name>Mparadis</name></author>
	</entry>
</feed>