Documentation/ImageGallery: Difference between revisions

From Commontk
Jump to navigationJump to search
Line 72: Line 72:
==Scripting/Python==
==Scripting/Python==
<gallery widths=300 px heights=200px perrow=3>
<gallery widths=300 px heights=200px perrow=3>
Image:CtkPythonShell.png|[http://www.commontk.org/docs/html/ctkSimplePythonShell_8py.html ctkPythonShell]<br>A console to interact with python
Image:CtkPythonShell.png|[http://commontk.org/index.php/Documentation/PythonScripting_HowToUseCTKPythonConsole ctkPythonShell]<br>A console to interact with python
</gallery>
</gallery>
=====How to launch the PythonShell=====
* Make sure that you have <code>CTK_APP_ctkSimplePythonShell</code> enable.
* To do it, type <code>ccmake .</code> in a terminal console at the CTK-build level. Use '''t''' to display all specifications and turn <code>ON</code> the <code>CTK_APP_ctkSimplePythonShell</code> parameter.
* To create the binaries, run <code>make -j8</code> in the same folder level.
* To run the app, go to the repository <code>CTK-build/CTK-build/bin</code> and run <code>./ctkSimplePythonShell</code>.

Revision as of 18:03, 1 September 2016

Home < Documentation < ImageGallery

Widgets

Visualization/VTK/Widgets

DICOM

Scripting/Python