Python Forum
[Tkinter] how do I enter code into python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] how do I enter code into python
#5
(Feb-13-2018, 08:16 AM)buran Wrote: https://python-forum.io/Thread-Basic-How...ython-code is pretty clear how to run it
c:\Users\bob>python test.py
Sorry buran I don't find the page you mention at all 'clear' for running python.
I will stick to the part
Command line (python script)
I have saved a file, my file is called ‘test’ because I used the page you mention to help me try to get it to work.
I have located the directory of the file and entered it into the command line
C:users\bob\test.py, as I said in my first post all I get is
SyntaxError; unexpected character after line continuation character.
A little further down the same page it says
Does your program when executed just flicker and then go away?.....in python 3. put input() in the end of the file to prevent this.
I tried this and it doesn’t work, my program still flickers and goes away if I just double click on the file.
It also says It depends on what OS you are on as to what the commands are. Some basics are:
Cd something
If I put cd user to change the directory to user it ignores this as well.

Grigouillis
Most of Your link is concerned with installing and altering various forms of python.
At one point (3.4.1 getting started) it does say
To check that the launcher is available, execute the following command in Command Prompt: py
if I do that I get
Traceback (most recent call last):
File "<stdin>". Line 1. in <module>
NameError: name 'py' is not defined
I assume I am not even in the launcher but nowhere, I can find, does it say how to check or how to get into the launcher.
At the top of the box it does say
python 3.6.4 (v3.6.4:d48eceb. Dec 19 2017, 06:04:45) [MSC v.1990 32 bit (intel)]
So I am assuming that I am at least somewhere in the python world.

I am not using wordpad. I said
Quote:I have deduced that I must build a file using something like wordpad
in fact I am using notepad.
Reply


Messages In This Thread
how do I enter code into python - by matelot - Feb-13-2018, 12:33 AM
RE: how do I enter code into python - by buran - Feb-13-2018, 08:16 AM
RE: how do I enter code into python - by matelot - Feb-13-2018, 11:19 AM
RE: how do I enter code into python - by buran - Feb-13-2018, 10:51 AM
RE: how do I enter code into python - by buran - Feb-13-2018, 11:24 AM
RE: how do I enter code into python - by matelot - Feb-13-2018, 11:28 AM
RE: how do I enter code into python - by buran - Feb-13-2018, 11:38 AM
RE: how do I enter code into python - by matelot - Feb-13-2018, 12:22 PM
RE: how do I enter code into python - by Larz60+ - Feb-13-2018, 12:41 PM
RE: how do I enter code into python - by buran - Feb-13-2018, 01:09 PM
RE: how do I enter code into python - by matelot - Feb-13-2018, 02:03 PM
RE: how do I enter code into python - by buran - Feb-13-2018, 02:16 PM
RE: how do I enter code into python - by matelot - Feb-13-2018, 03:01 PM
RE: how do I enter code into python - by metulburr - Feb-13-2018, 05:22 PM
RE: how do I enter code into python - by matelot - Feb-13-2018, 11:14 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020