trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: February 2016

Re: [trinity-users] Huge tde update yesterday, python stuff now fails

From: "Dr. Nikolaus Klepp" <office@...>
Date: Fri, 5 Feb 2016 15:31:12 +0100
Oops, line was truncated:

# LINUXCNC
(
	sleep 10
	xrdb -all -query|sed -e 's#[A-Z_]*BACKGROUND# gray90#' \
	-e 's#[A-Z_]*FOREGROUND# Black#'  \
	-e 's#[A-Z_]*HIGHLIGHT# White#' \
	-e 's#[A-Z_]*LOWLIGHT# Black#'|xrdb -merge
) &

Am Freitag, 5. Februar 2016 schrieb Dr. Nikolaus Klepp:
> Am Freitag, 5. Februar 2016 schrieb Gene Heskett:
> > Greetings guru's;
> > 
> > This did work before the 51 tde updates yesterday:
> > 
> > gene@GO704:~/linuxcnc$ python python_opencv_camera_example_with_gui.py
> > Traceback (most recent call last):
> >   File "python_opencv_camera_example_with_gui.py", line 278, in <module>
> >     main()
> >   File "python_opencv_camera_example_with_gui.py", line 222, in main
> >     root = Tk()
> >   File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
> >     self.tk = _tkinter.create(screenName, baseName, className, 
> > interactive, wantobjects, useTk, sync, use)
> > _tkinter.TclError: unknown color name "BACKGROUND"
> > 
> > This has been a  dog & pony show I have been to before, several times, 
> > and each time IIRC the fix was different.  Historically, if by playing 
> > the 10,000 monkeys with typewriters scene long enough that I manage to 
> > fix 'BACKGROUND' the FOREGROUND will be the next excuse used to exit a 
> > formerly working script.
> > 
> > Does anyone have a clue what to fix this time?
> > 
> > Thanks everybody.
> > 
> > Cheers, Gene Heskett
> 
> Hi Gene!
> 
> It's still the old solution with "xrdb", same that works on TDE :-)
> This is (still) in my ~/.xsessionrc :
> 
> # LINUXCNC
> (
>     sleep 10
>     xrdb -all -query|sed -e 's#[A-Z_]*BACKGROUND# gray90#' -e 's#[A-Z_]*FOREGROUND# Black#'  -e 's#[A-Z_]*HIGHLIGHT# White#' -e 's#[A-Z_]*LOWLIGHT# Black
> ) &
> 
> 
> Nik
> 
> 



-- 
Please do not email me anything that you are not comfortable also sharing with the NSA.