<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python - QT in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/python-qt/m-p/782353#M816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to using the AppStudio and the Mobile application coding in general. First of all, i need your guidance as of how to start an efficient start using this product. Secondly, If i have a Python code that fulfills certain functionality, can i use this Python code in AppStudio QT creator to have the same code running in my application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Nov 2015 06:53:37 GMT</pubDate>
    <dc:creator>Hussein_Mohamed_AhmedElhadi</dc:creator>
    <dc:date>2015-11-21T06:53:37Z</dc:date>
    <item>
      <title>Python - QT</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/python-qt/m-p/782353#M816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to using the AppStudio and the Mobile application coding in general. First of all, i need your guidance as of how to start an efficient start using this product. Secondly, If i have a Python code that fulfills certain functionality, can i use this Python code in AppStudio QT creator to have the same code running in my application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 06:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/python-qt/m-p/782353#M816</guid>
      <dc:creator>Hussein_Mohamed_AhmedElhadi</dc:creator>
      <dc:date>2015-11-21T06:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python - QT</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/python-qt/m-p/782354#M817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hussein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to use AppStudio and python conveniently at the moment, however there are some approaches you could take.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following this blog article Qt Creator can support Python.&amp;nbsp; However this was done with the Qt SDK c++ environment. You may want to try this out.&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2015/11/16/using-python-and-qml-to-build-native-apps/" title="http://blogs.esri.com/esri/arcgis/2015/11/16/using-python-and-qml-to-build-native-apps/" rel="nofollow noopener noreferrer" target="_blank"&gt;Using Python and QML to build native apps | ArcGIS Blog&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach is that the AppFramework could open a script. the example I am showing is a windows batch file but there is no reason why it couldn't run your python scripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;QtQuick&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;2.3&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808000;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;ArcGIS.AppFramework&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;1.0&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808000;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;ArcGIS.AppFramework.Controls&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;1.0&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;App&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;app&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;width&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;400&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;height&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;640&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;batFile&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"C:/Users/gare7065/ArcGIS/AppStudio/Data/test.bat"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Component.onCompleted&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #0055af;"&gt;Qt&lt;/SPAN&gt;.openUrlExternally(&lt;SPAN style="color: #800080;"&gt;AppFramework&lt;/SPAN&gt;.resolvedPathUrl(&lt;SPAN style="font-style: italic; color: #000000;"&gt;batFile&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;}

The other thing you could is make your python tools GP services and then interact with them via the AppFramework's NetworkRequest object.

There are three options for you. I hope that helps.

Cheers,

Gareth

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/python-qt/m-p/782354#M817</guid>
      <dc:creator>GarethWalters</dc:creator>
      <dc:date>2021-12-12T08:54:01Z</dc:date>
    </item>
  </channel>
</rss>

