cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
851 stars 112 forks source link

ncpy errors out on unknown colors #79

Open leehanel opened 11 years ago

leehanel commented 11 years ago

I have custom colors defined for solarize on my terminal in .Xresources. Unfortunatly, nvpy tries to pull this in, and failed because it doesn't know about the color name.

Lee

nvpy Traceback (most recent call last): File "/usr/local/bin/nvpy", line 9, in load_entry_point('nvpy==0.9.4', 'gui_scripts', 'nvpy')() File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 691, in main controller = Controller() File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 251, in init self.view = view.View(self.config, self.notes_list_model) File "/usr/local/lib/python2.7/dist-packages/nvpy/view.py", line 589, in init self._create_ui() File "/usr/local/lib/python2.7/dist-packages/nvpy/view.py", line 898, in _create_ui self.root = tk.Tk(className="nvPY") File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1748, in init self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: unknown color name "S_base03"

bardo commented 10 years ago

This seems to be a fairly common problem with Tk, I am too a solarized users, and Tk applications like gitk don't work as-is. A workaround which works for me is manually loading the .Xresources configuration: xrdb -load ~/.Xresources