robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
455 stars 114 forks source link

easygui 98 error on Python - can't import tkinter #134

Closed hamdyaea closed 6 years ago

hamdyaea commented 6 years ago

I try to launch my python program then I have this error :

Traceback (most recent call last): File "multiquestions-scrum-quiz.py", line 26, in game_start = buttonbox(title=start_title,image=logo,msg=start_msg,choices=play) File "/usr/lib/python3.6/site-packages/easygui/boxes/button_box.py", line 102, in buttonbox callback=callback) File "/usr/lib/python3.6/site-packages/easygui/boxes/button_box.py", line 147, in init self.ui = GUItk(msg, title, choices, images, default_choice, cancel_choice, self.callback_ui) File "/usr/lib/python3.6/site-packages/easygui/boxes/button_box.py", line 263, in init self.boxRoot = tk.Tk() File "/usr/lib/python3.6/tkinter/init.py", line 2017, in init self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: unknown color name "BACKGROUND"

zadacka commented 6 years ago

What Operating System are you using? If you are using Debian, could you try the steps outlined here:

$ xrdb -load /dev/null
$ xrdb -query

I don't think that this is an EasyGui bug, but rather a problem with getting default values for Tk GUI elements. If the above fails we can try an alternative approach to setting defaults.

hamdyaea commented 6 years ago

I'm using archlinux and my Python is installed from Arch-Anywhere. After recompilation of python36 and a reboot everything works.

The problem is solved.

zadacka commented 6 years ago

Excellent! Thanks for sharing details, and that the problem is now resolved.