← Back to team overview

yade-dev team mailing list archive

Re: pyqt4 interface

 

18.08.2010 14:13, Václav Šmilauer пишет:
[[ ^L clears screen, ^U kills line. F8 plot. ]]<--- NO F12
Not compiled with qt4 feature, qt4 not available or no $DISPLAY set. See
http://bazaar.launchpad.net/~yade-dev/yade/trunk/annotate/head%3A/core/main/main.py.in#L140
where this is handled, you can insert a few print lines to see where it
sets gui=None instead of gui='qt4'.

My problem is linked with Xlib.display.
I commented lines 151-152 in yade-trunk and got:

sega@think:~/YADE/bin> yade-trunk
Welcome to Yade bzr2404
Traceback (most recent call last):
  File "/home/sega/YADE/bin/yade-trunk", line 150, in <module>
Xlib.display._BaseDisplay(); # contrary to display.Display, _BaseDisplay does not check for extensions and that avoids spurious message "Xlib.protocol.request.QueryExtension" (bug?) File "/usr/lib/python2.6/site-packages/Xlib/display.py", line 67, in __init__
    apply(protocol.display.Display.__init__, (self, ) + args, keys)
File "/usr/lib/python2.6/site-packages/Xlib/protocol/display.py", line 121, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": No protocol specified

I have:

sega@think:~/YADE/bin> echo $DISPLAY
:0.0

and xeyes works.
I compiled with features gts,log4cxx,opengl,openmp,qt4,vtk ).








--
Best regards,
Sergei D.



Follow ups

References