kann es sein, dass die Python-Version von OpenOffice Tkinter nicht unterstützt?
Bei einem Versuch, das Beispielprogramm aus der Datei C:\Program Files\OpenOffice 4\program\python-core-2.7.6\lib\lib-tk\Tkinter.py
Code: Alles auswählen
# Example (Hello, World):
import Tkinter
from Tkconstants import *
tk = Tkinter.Tk()
frame = Tkinter.Frame(tk, relief=RIDGE, borderwidth=2)
frame.pack(fill=BOTH,expand=1)
label = Tkinter.Label(frame, text="Hello, World")
label.pack(fill=X, expand=1)
button = Tkinter.Button(frame,text="Exit",command=tk.destroy)
button.pack(side=BOTTOM)
tk.mainloop()
Code: Alles auswählen
Traceback (most recent call last):
File "D:\Divers\Python\PyProjekte\Tkinter_Hallo_Welt\src\tkinter_hallo_welt.py", line 9, in <module>
import Tkinter
File "C:\Program Files\OpenOffice 4\program\python-core-2.7.6\lib\lib-tk\Tkinter.py", line 39, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter