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
#18
I am hoping to run a program that links an arduino to a mechanical device and the information I have is to use python to do it and provides the program that includes pyserial so I need pyserial.
I am just about to delete the python software and try to reinstall it.

I have now reloaded python In fact I found a 64 bit version that I loaded and did a custom load. Ticked the PATH box and saved the files in c;\users\bob\python36.
If I put my test file in python36 and remove the references to pyserial it works fine.
I assumed that ticking the path box would mean that python would run from anywhere, it seems not, if I put my test file (without the pyserial part) in c;\users\bob and try to run it from there I get a box saying
the application was unable to start correctly(0xc000007b)
I was hoping this would help with the fact that the pyserial files are elsewhere.
I am slowly moving forward but still need to be able to run the file that contains
## 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()
Any help would be appreciated.
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