<?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 Any PyQt users out there? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446569#M35042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out how to design and implement a GUI developed in PyQt5 and then execute a query against a SQL server data base.&amp;nbsp; I'd like to&amp;nbsp;take a begin date value and an end date value from two Date Edit widgets and pass those two as variables for my sql query to use in a 'Where Between' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the python/sql queries all taken care of, and I can run them easily, but this will be for non-python, non-database users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create the ui just fine, and then convert the .ui file to a .py file, which when run produces a window with the two widgets:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="246" src="https://community.esri.com/legacyfs/online/497771_pastedImage_1.png" width="595" /&gt;&lt;/P&gt;&lt;P&gt;The Begin date has a default value of 1/1/89 and the while the Date is 1/1/21.&amp;nbsp; Here is the part of the code that defines the window and widgets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Ui_Form&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;setupUi&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Form&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
        
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setFont&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;font&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMaximumDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;31&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;23&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;59&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;59&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMaximumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;31&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMinimumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setObjectName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dateEditStartDate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; QtWidgets&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDateEdit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Form&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QRect&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;290&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;130&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;25&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMaximumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMinimumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setObjectName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dateEditEndDate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Admittedly, I'm pretty green when it comes to using classes in python, but I think there is a way to get the values from the user input for each of the two dates, but I just don't know how to do that.&amp;nbsp; Obviously there will be a bit more to my GUI, so this is just the start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:57:22 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-12-11T19:57:22Z</dc:date>
    <item>
      <title>Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446569#M35042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out how to design and implement a GUI developed in PyQt5 and then execute a query against a SQL server data base.&amp;nbsp; I'd like to&amp;nbsp;take a begin date value and an end date value from two Date Edit widgets and pass those two as variables for my sql query to use in a 'Where Between' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the python/sql queries all taken care of, and I can run them easily, but this will be for non-python, non-database users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create the ui just fine, and then convert the .ui file to a .py file, which when run produces a window with the two widgets:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="246" src="https://community.esri.com/legacyfs/online/497771_pastedImage_1.png" width="595" /&gt;&lt;/P&gt;&lt;P&gt;The Begin date has a default value of 1/1/89 and the while the Date is 1/1/21.&amp;nbsp; Here is the part of the code that defines the window and widgets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Ui_Form&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;setupUi&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Form&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
        
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setFont&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;font&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMaximumDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDateTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;31&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QTime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;23&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;59&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;59&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMaximumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;31&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMinimumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditStartDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setObjectName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dateEditStartDate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; QtWidgets&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDateEdit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Form&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QRect&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;290&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;130&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;25&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMaximumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setMinimumDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1989&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;QtCore&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;QDate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2021&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dateEditEndDate&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setObjectName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dateEditEndDate"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Admittedly, I'm pretty green when it comes to using classes in python, but I think there is a way to get the values from the user input for each of the two dates, but I just don't know how to do that.&amp;nbsp; Obviously there will be a bit more to my GUI, so this is just the start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446569#M35042</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-11T19:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446570#M35043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not for a while... too much like this...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/498154_rabbithole.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 03:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446570#M35043</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-29T03:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446571#M35044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems more like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="356" src="https://community.esri.com/legacyfs/online/498220_sinkhole.jpg" width="475" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 14:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446571#M35044</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-29T14:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446572#M35045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;- I followed this &lt;A href="https://pythonbasics.org/pyqt-buttons/#:~:text=Course-,PyQt%20buttons,can%20connect%20methods%20to%20it."&gt;this page&lt;/A&gt;&amp;nbsp;and came up with a gui with 8 buttons that does what I want it to do:&amp;nbsp; Not what I originally posted, but the buttons open a browser tab for a specific agol-dashboard.&amp;nbsp; The QT Designer is just a little much for me, but I can use it to get an idea how the set up the window and buttons but the gui below was written all as a python script.&amp;nbsp; I then used &lt;A href="https://pypi.org/project/PyInstaller/"&gt;pyinstaller&lt;/A&gt; to package up the mess, so the gui can be installed as a .exe for anyone to use. No python install needed and less than 100 lines of python code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498232_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm gonna try this approach and see if I can get a text box interaction to set the variables for my sql queries....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 17:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446572#M35045</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-29T17:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446573#M35046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my SQl queries based on a date range, I went a different route and use &lt;A href="https://github.com/chriskiehl/Gooey"&gt;Gooey&lt;/A&gt;.&amp;nbsp; It was suggested to me by a colleague; in less than a day I built the interface below, included a SQL query, and have it up and running with only about 80 lines of code.&amp;nbsp; Each of the arguments provided by the user via the gui is parsed out and passed as variables to the sql query.&amp;nbsp; If you are looking for a fairly simple to use gui builder, I highly recommend it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This particular one uses just the&amp;nbsp;two different widgets shown:&amp;nbsp;one&amp;nbsp;'FileSaver' and two 'DateChooser' widgets that allow the user to navigate to a file system location and enter a .csv file name and select a date respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 j-img-centered jive-image" height="449" src="https://community.esri.com/legacyfs/online/498537_pastedImage_7.png" style="display: block; margin-left: auto; margin-right: auto;" width="538" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446573#M35046</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-07-01T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446574#M35047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will have a look... but I don't sql, I&amp;nbsp;need graphics outputs like matplotlib and related&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:49:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446574#M35047</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-01T20:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446575#M35048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to familiarize myself with matplotlib.&amp;nbsp; I just went to&amp;nbsp;&lt;A class="link-titled" href="https://matplotlib.org/gallery/lines_bars_and_markers/categorical_variables.html#sphx-glr-gallery-lines-bars-and-markers-categorical-variables-py" title="https://matplotlib.org/gallery/lines_bars_and_markers/categorical_variables.html#sphx-glr-gallery-lines-bars-and-markers-categorical-variables-py"&gt;Plotting categorical variables — Matplotlib 3.2.2 documentation&lt;/A&gt;&amp;nbsp;and downloaded the python code and ran it in spyder; the graphs then appear on the console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 21:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446575#M35048</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-07-01T21:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446576#M35049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the graphs to run inline, to the new console graph or my favorite is automatic which produces a floating graph/map that you can resize and make interactive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 22:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446576#M35049</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-01T22:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Any PyQt users out there?</title>
      <link>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446577#M35050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="674" src="https://community.esri.com/legacyfs/online/498560_plot2d.png" width="537" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 22:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/any-pyqt-users-out-there/m-p/446577#M35050</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-01T22:10:21Z</dc:date>
    </item>
  </channel>
</rss>

