-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow CTK PythonQt python module to be imported outside of a Qt applicat... #520
base: master
Are you sure you want to change the base?
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: