Wing IDE is "the intelligent development environment for Python programmers." Wing is available in EHS 117 and EHS 119 and is the development environment of choice for coursework in Python.
You may also download and install Wing (free "Personal" edition) on your personal machine (available for Windows, Linux, and macOS). If you are an upper-division major, please contact me about a 12-month academic license if you require advanced functionality (version control, unit tests, refactoring, remote development, etc).
Make sure you have a working Python installation. After you have installed Python, proceed to the next step.
Run Wing. Make sure the "Python Shell" tool pane is visible (you can quickly add it or bring it to the front by selecting "Tools" > "Python Shell" from the menu bar). Verify that the shell reports the correct Python version.
3.5.3 (default, Apr 23 2017, 18:09:27) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Python Type "help", "copyright", "credits" or "license" for more information.
If the shell reports a different version (say, version 2.7 instead of version 3.5), do the following in Wing:
python3in the textbox (or select it from the dropdown list of options).
Back in the "Python Shell" tool pane, restart the shell by selecting the "Options" > "Restart Shell" menu on the tool pane (or simply quit and re-run Wing). The shell should now report the correct Python version. If not, verify that you have a working Python installation.
Open the Wing IDE preferences ("Edit" > "Preferences" menu on Windows and Linux, "WingPersonal" > "Preferences" menu on macOS). Ensure that the following preferences are set correctly:
|Files||General||Default Encoding||utf-8 (your system may already default to this)|
|New File EOL||Line Feed \n|
|New File Extension||.py|
|Editor||General||Show Line Numbers||checked|
|Indentation||Default Indent Size||4 (or 3, if you prefer)|
|Default Indent Style||Spaces Only|
|Show Indent Guides||checked|
|Line Wrapping||Wrap Long Lines||unchecked|
|Edge Markers: Mode||Border|
|Edge Markers: Column||80|
Enter the following source code into a new, empty document window in Wing:
name = 'world' print('Hello, ' + name + '!')
Save the program to your desktop as hello.py. Now, run the program by doing one of the following:
Verify that your program runs without errors and displays the expected output in the "Debug I/O" tool pane (try the "Tools" > "Debug I/O" menu if you can't find it).
Now, modify the program to print your name.
This page was last modified on 2017-12-27 at 21:06:19.
George Fox University · 414 N Meridian St · Newberg, Oregon 97132 · 503-538-8383
Copyright © 2015–2018 George Fox University. All rights reserved.