include a file in a python program
Niklasro(.appspot)
niklasro at gmail.com
Mon Sep 6 03:50:29 EDT 2010
On Sep 5, 10:57 pm, bussiere bussiere <bussi... at gmail.com> wrote:
> i've got a python.txt that contain python and it must stay as it (python.txt)
>
> how can i include it in my program ?
> import python.txt doesn't work
> is there a way :
> a) to make an include("python.txt")
> b) tell him to treat .txt as .py file that i can make an import python ?
> i'am using python3
> Regards
> Bussiere
> fan of torchwood
> Google Fan boy
You can do it with tkinter to also enable GUI.
More information about the Python-list
mailing list