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
#1
I am totally new to python. I have been asked to use python to solve another problem
I have gone through
https://python-forum.io/Thread-Basic-How...ython-code
without the answer.
From there I have deduced that I must build a file using something like wordpad, this I have done.
I now have a file called test.py containing.

## Rubik (Hello, World)    @ kas 2017

from tkinter import *
import serial, time
from serial import SerialException
import atexit
import subprocess

root =Tk()
root.title('Hello, World')
root.geometry('300x300+200+200')          

## window size + position

root.mainloop()
I have looked up tkinter and found it is a file that is included in the python download.
I am not sure about 'serial' is this within tkinter?
When I put c;users\bob\test.py (that is where the file is) into python all I get is
SyntaxError; unexpected character after line continuation character.
I assume I am doing something simple wrong but I have no idea what. Can you help?
thanks.
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