CTK
CTK copied to clipboard
Allow CTK PythonQt python module to be imported outside of a Qt applicat...
...io,
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', [...]
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! On Nov 7, 2014 1:22 PM, "Jean-Christophe Fillion-Robin" < [email protected]> wrote:
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 https://github.com/ntoussaint
— Reply to this email directly or view it on GitHub https://github.com/commontk/CTK/pull/520#issuecomment-62135191.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
is this still relevant? It was started 6 years ago.
Re: a203172
This modification does not seem to work, an attempt to import any of the following:
CTKCommandLineModulesBackendFunctionPointerPythonQt CTKCommandLineModulesBackendLocalProcessPythonQt CTKCommandLineModulesBackendXMLCheckerPythonQt CTKCommandLineModulesCorePythonQt CTKCommandLineModulesFrontendQtGuiPythonQt CTKCommandLineModulesFrontendQtWebKitPythonQt
Causes Segfault. (Should it show an import error instead?)
Perhaps compiling them as private might do the trick, since allowing them seems to be risky? Addition: applying this commit to the latest version and attempting to import any of the above yields No Such Module, but it does take care of the Segfault. Is this the intended result?