FYI, the reason that the ubuntu pymol 2.1.0 package currently doesn't
use the PyQT interface in the presence of the libqt5opengl5 package is that
they are hard coding pymol to use pmg_tk with the patch...

$ cat 50_force_tk.patch
Description: Disable the Qt interface to ensure the Tk interface is used.
  Patch must be dropped when converting to the Qt interface.
Author: Stuart Prescott <stu...@debian.org>
Bug: 902348
--- a/modules/pymol/__init__.py
+++ b/modules/pymol/__init__.py
@@ -436,16 +436,7 @@
         args = sys.argv
     invocation.parse_args(args)

-    if invocation.options.gui == 'pmg_qt':
-        if invocation.options.no_gui:
-            return _launch_no_gui()
-
-        try:
-            from pmg_qt import pymol_qt_gui
-            sys.exit(pymol_qt_gui.execapp())
-        except ImportError:
-            print('Qt not available, using GLUT/Tk interface')
-            invocation.options.gui = 'pmg_tk'
+    invocation.options.gui = 'pmg_tk'

     prime_pymol()
     _cmd.runpymol(_cmd._get_global_C_object(), block_input_hook)

Reverting that change in /usr/lib/python2.7/dist-packages/pymol/__init__.py
solves the problem.
            Jack
_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to