ich habe ein Problem mit der Benutzung von Tkinter in Python. Das Paket (python-tk bzw python2.x-tk) lässt sich installieren, will ich dann aber Tkinter auch benutzen gibt es eine unschöne Fehlermeldung:
Code: Alles auswählen
Python 2.5c1 (r25c1:51305, Aug 19 2006, 18:23:29)
[GCC 4.1.2 20060814 (prerelease) (Debian 4.1.1-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> Tkinter.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1639, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: this isn't a Tk applicationunknown color name "Black"
Zudem scheint es sich dabei um ein Debianspezifisches Problem zu handeln, da es mir bisher nur in den Debianoiden (Debian, Ubuntu, Kanotix) aufgefallen ist, allerdings nicht in openSuse und Arch Linux.
Die Frage richtet sich natürlich vor allem an diejenigen hier, die auch Programme in Python schreiben. Wie bekomme ich Tkinter in Python zum Laufen?
Danke schonmal im Voraus,
mikrokosmos
PS: Ich hoffe einmal, mit "Grundsatzfragen" das richtige Unterforum erwischt zu haben, weil es sich ja doch um ein Problem handelt, das speziell auf Debian bezogen ist.