Allow CTK PythonQt python module to be imported outside of a Qt applicat...#520
Allow CTK PythonQt python module to be imported outside of a Qt applicat...#520jcfr wants to merge 1 commit intocommontk:masterfrom
Conversation
|
This is not ready for integration yet. Further test would have to be done. I created the PR so that other could have a sneak peak. Ping @ntoussaint |
|
Wow!
|
…catio, On Linux, I was able to import the ctk module doing the following: $ cd /path/to/CTK-build/CTK-build/bin $ PYTHONPATH=./Python/ python >> import ctk >> import pprint as pp >> pp.pprint(dir(ctk)) ['QAbstractButton', 'QAbstractItemModel', [...] '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'ctkActionsWidget', 'ctkAddRemoveComboBox', 'ctkAxesWidget', 'ctkBasePopupWidget', 'ctkButtonGroup', 'ctkCallback', 'ctkCheckBox', 'ctkCheckBoxPixmaps', 'ctkCheckableComboBox', 'ctkCheckablePushButton', 'ctkCollapsibleButton', 'ctkCollapsibleGroupBox', 'ctkColorDialog', 'ctkColorPickerButton', 'ctkComboBox', 'ctkCommandLineParser', 'ctkCompleter', 'ctkConsole', [...]
8248925 to
e4f7a7c
Compare
|
is this still relevant? It was started 6 years ago. |
…e python Since importing a PythonQt-based module outside of a Qt application leads to a segfault, skip the import if it happens in a standalone python interpreter. See commontk#520
…e python Since importing a PythonQt-based module outside of a Qt application leads to a segfault, skip the import if it happens in a standalone python interpreter. See commontk#520
…e python Since importing a PythonQt-based module outside of a Qt application leads to a segfault, skip the import if it happens in a standalone python interpreter. See #520
|
Re: a203172 Perhaps compiling them as private might do the trick, since allowing them seems to be risky? |
...io,
On Linux, I was able to import the ctk module doing the following: