Language - Python Linux Terminal: Difference between revisions

From Phidgets Support
No edit summary
(Redirected page to Language - Python)
 
Line 1: Line 1:
[[Category:Language]]{{NoTitle}}
#REDIRECT [[Language - Python]]
{|
|style="vertical-align:middle; width: 60%;"|
<font size=6>'''Language - Python'''
 
'''Linux with Terminal'''</font>
 
Welcome to using Phidgets with Python! By using Python, you will have access to the complete Phidget22 API, including events.
 
The terminal is the default environment to make Python programs in Linux, since it's available immediately after installing Python.
 
|{{TOC limit|2}}
|}
 
{{Language_-_Python_Intro_Linux}}
{{Finding Code Samples|Python}}
 
==Using the Code Samples==
To use the code sample from the [{{server}}/?view=code_samples&lang=Python Code Samples] page, you can click the '''Download Example''' button to download a Python file with the sample code.
 
[[Image:Python_Sample_Code_Download.png|link=|center|border|800px]]
 
 
Open the command prompt at the location of the example and enter the following command:
 
<tabber>
Python 3=
<syntaxhighlight lang=bash>
python3 Python_Example.py
</syntaxhighlight>
|-|
Python 2=
<syntaxhighlight lang=bash>
python Python_Example.py
</syntaxhighlight>
</tabber>
 
Success! Your program is now running with Phidgets!
 
{{Language Page What's Next}}

Latest revision as of 16:46, 15 March 2021

Redirect to: