This article is about the use of IDEL (Python GUI) for python development. Shared for your reference, as follows:
After installing Python, we would like to be able to use python GUI to run some of the programs we have written, so how does Python GUI work?
After reading this blog, maybe you'll be able to write your own programs using the Python GUI.
Let's take a look at how the Python GUI is used!
1. Create a new file
Let's create a new file with any name, I've named it here:
test_hello.py
2. Opening files with the Python GUI
We can select test_hello.py, right click - > Edit with IDLE (ie: Python GUI)
Write the following program:
# Define a variable hello = "hello" # Print the hello variable print(hello) ############################################### test_list = [1,2,3,4,"hongten"] for i in range(1,10): test_list.append(i) print(test_list)
The form presented in the Python GUI is as follows:
3. Running the program
Click Run--> Run Module F5
Below:
The program can be run.
4. Operational effects
The running effect is as follows:
5. Provide debug function
After running the program, there is the deBug option where we can turn on the deBug function
debug run effects:
Summary:
The overall function of the software is not a lot, with more than a few times will be able to use proficiently, finally, I hope this tutorial can help those to me such as new contact with the Python rookie!