|
|
Line 1: |
Line 1: |
| [[Category:Language]]{{NoTitle}} | | #REDIRECT [[Language - Python]] |
| {|
| |
| |style="vertical-align:middle; width: 60%;"|
| |
| <font size=6>'''Language - Python'''
| |
| | |
| '''Windows with IDLE'''</font>
| |
| | |
| Welcome to using Phidgets with Python! By using Python, you will have access to the complete Phidget22 API, including events.
| |
| | |
| IDLE is a cross-platform development environment for Python targeted at newcomers to the language.
| |
| | |
| |{{TOC limit|2}}
| |
| |}
| |
| | |
| <div style="text-size:24pt; color:red">WARNING: We do not recommend using Idle with Phidgets. It has known problems dealing with multiple threads, which is a required feature if your program uses events.</div>
| |
| | |
| {{Language_-_Python_Intro_Windows}}
| |
| | |
| {{Finding Code Samples|Python}}
| |
| | |
| ==Using the Code Samples==
| |
| To use the code sample from the [{{SERVER}}?view=code_samples&lang=Python Code Samples] page, copy it into a new Python script file, and save it.
| |
| | |
| [[Image:Python_Sample_Code_Windows_Idle.png|link=|center]]
| |
| | |
| To run the example, simply click on ''Run'' and select ''Run Module'':
| |
| | |
| [[Image:Python_Sample_Code_Windows_Idle_Run.png|link=|center]]
| |
| | |
| {{Language Page What's Next}}
| |