Testing VR3 imports in a separate node: import leo.plugins.qt_text as qt_text import leo.plugins.free_layout as free_layout from leo.core.leoQt import isQt6, isQt5, QtCore, QtWidgets from leo.core.leoQt import phonon, QtMultimedia, QtSvg from leo.core.leoQt import KeyboardModifier, Orientation, QAction, QActionGroup, WrapMode
exception executing script ImportError: cannot import name 'QActionGroup' from 'leo.core.leoQt' (c:\Tom\git\leo-editor\leo\core\leoQt.py) This seems to be one of the problems. I'll have to find out where *QActionGroup* went to. On Tuesday, July 13, 2021 at 1:49:57 PM UTC-4 [email protected] wrote: > Merging ekr-qt6-2 into my own qt6 branch, Leo does not start: > > File "c:\Tom\git\leo-editor\leo\plugins\nested_splitter.py", line 363, in > NestedSplitter > Orientations = QtCore.Qt.Orientations if isQt6 else QtCore.Qt > AttributeError: type object 'Qt' has no attribute 'Orientations' > > Obviously it's an enumeration thing to be fixed, but how are you able to > run? > On Tuesday, July 13, 2021 at 1:14:46 PM UTC-4 [email protected] wrote: > >> How did you get PyQt6.2? The latest I got just now via pip is >> *PyQt6-Qt6-6.1.2*. >> >> On Tuesday, July 13, 2021 at 1:11:56 PM UTC-4 [email protected] wrote: >> >>> OK, I'll get on it. >>> >>> On Tuesday, July 13, 2021 at 12:36:17 PM UTC-4 Edward K. Ream wrote: >>> >>>> I have spent two long days dealing with the name changes foisted upon >>>> us by the Qt devs. More work and testing is coming. If there are major >>>> problems I may just punt on Qt6 entirely until after Leo 6.4 final. >>>> >>>> PR #2054 <https://github.com/leo-editor/leo-editor/pull/2054> shows >>>> the scale of the work involved. The ekr-qt6-2 branch contains the work. I >>>> expect to spend at least another day testing. >>>> >>>> Thomas, I made several changes to the vr3 plugin. I had no real choice >>>> but to follow the patterns now used throughout Leo to make sense of the Qt >>>> naming horrors. >>>> >>>> vr3 doesn't load with qt6 in the ekr-qt6-2 branch. Perhaps you are >>>> aware of this. >>>> >>>> In embed_widget I changed explicit tests on isQt6 to a single line: >>>> >>>> w.setWordWrapMode(WrapMode.WrapAtWordBoundaryOrAnywhere) >>>> >>>> This *might *work, but I haven't tested it. Please let me know if >>>> there are problems. >>>> >>>> Edward >>>> >>> -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/be4f4b88-b4b6-4d95-a3e2-be87455d406cn%40googlegroups.com.
