<div dir="ltr">Yes you can.<div><br></div><div>The Python terminology for making a standalone app is "freezing". There are a variety of tools that automate the process. py2app, py2exe etc. They all bundle your code and its dependencies together and sometimes fixing up shared library paths so that you can hand it off to someone else and they can run it without any extra installs.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 20, 2018 at 9:29 AM Ta, Duc-Manh <<a href="mailto:niuton152@gmail.com">niuton152@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Hi Andrew,</div></div><div dir="auto"><br></div><div dir="auto">Thanks for your great insight. I’m new to Python and totally get lost in its public libraries. I guess I can google it, but just want to ask your opinion. Is it possible to pack a standalone app with Python and PySide so that I can distribute it to other colleagues?</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Manh</div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 20, 2018 at 7:39 PM Andrew E. Slaughter <<a href="mailto:andrew.slaughter@inl.gov" target="_blank">andrew.slaughter@inl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My recommendation is to use PySide (<a href="https://wiki.qt.io/Qt_for_Python" rel="noreferrer" target="_blank">https://wiki.qt.io/Qt_for_Python</a>), the official Python bindings for Qt. I have used Python and PySide (the old one), PyQt4, and PyQt5 to maintain a VTK based GUI for many years, they work well together. Good luck.<br>
<br>
________________________________________<br>
From: vtkusers <<a href="mailto:vtkusers-bounces@public.kitware.com" target="_blank">vtkusers-bounces@public.kitware.com</a>> on behalf of manhta152 <<a href="mailto:niuton152@gmail.com" target="_blank">niuton152@gmail.com</a>><br>
Sent: Monday, August 20, 2018 3:58:58 AM<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Subject: [vtkusers] Embed VTK in a GUI<br>
<br>
Hi everyone,<br>
<br>
I have a computational modeling program that has been written in Matlab. I<br>
developed a GUI in Matlab and used VTK to visualize and interact (transform,<br>
cut, deform, etc.,) CAD models. However, Matlab GUI does not support<br>
embedding VTK, resulting in a separate Matlab GUI and a VTK rendering<br>
window. I have looked for options to embed VTK in a GUI that works similar<br>
to 3D Slicer. I know that I can do it in Qt, Python and PyQt, Python and Tk,<br>
Jave, and C#.<br>
<br>
The problem is my program consists of many matrix-based calculations that<br>
may take a great deal of effort if I develop the program in Qt and C#.<br>
Python is quite close to Matlab that I think I can develop the program in a<br>
short period and save time.<br>
<br>
For those who have experience in developing an app using VTK and PyQt,<br>
please let me know I should use VTK and PyQt4 or PyQt5 and why?<br>
<br>
Also, if you think Qt or C# can work more efficiently than Python (I don't<br>
have much experience in Qt), please let me know your thoughts and share with<br>
me how I can work efficiently with matrices in Qt and C#.<br>
<br>
Thanks in advance. I do appreciate any input.<br>
<br>
Regards,<br>
Manh<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=907KYG62qUwb2Gm7bpb1u4Sk%2FXP0oasjU1Xp3XdIYlE%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=907KYG62qUwb2Gm7bpb1u4Sk%2FXP0oasjU1Xp3XdIYlE%3D&amp;reserved=0</a><br>
_______________________________________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=WRwde%2BH2a6rWuYKFkI1DR3h4aZgyBGsJidMPgXBvLSE%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=WRwde%2BH2a6rWuYKFkI1DR3h4aZgyBGsJidMPgXBvLSE%3D&amp;reserved=0</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=uoinIT40oISsji%2Fql4XN6QUXXLzomHVdZjm4uPVq574%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=uoinIT40oISsji%2Fql4XN6QUXXLzomHVdZjm4uPVq574%3D&amp;reserved=0</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=GgIeiz1t4yStgLAZPGN7eDeQVSHDE3pzyH6xCybqtlo%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=GgIeiz1t4yStgLAZPGN7eDeQVSHDE3pzyH6xCybqtlo%3D&amp;reserved=0</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=29K7%2F6Z17oHJK1fjmLkJ6NzoNMPgOlsVmLmdKmeJnfc%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=29K7%2F6Z17oHJK1fjmLkJ6NzoNMPgOlsVmLmdKmeJnfc%3D&amp;reserved=0</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=PlqeA5G62Q2dzs3RIUo%2BSmcvjLYo5ztJF2H3%2Foevy2E%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&amp;data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&amp;sdata=PlqeA5G62Q2dzs3RIUo%2BSmcvjLYo5ztJF2H3%2Foevy2E%3D&amp;reserved=0</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="m_8487128993029567116gmail_signature" data-smartmail="gmail_signature">Manh Ta<br>Graduate Research Assistant<br>Center for Musculoskeletal Research<br>The University of Tennessee<br>Knoxville, TN 37996<br>Email: <a href="mailto:dta@vols.utk.edu" target="_blank">dta@vols.utk.edu</a></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>