nngogol / PySimpleGUIDesigner

Desinger for PySimpleGUI
GNU General Public License v2.0
180 stars 27 forks source link

Exception: error, no obj_name="groupBox" found #10

Closed akaped closed 4 years ago

akaped commented 4 years ago

I've created a very basic GUI in Qt Designer, code attached at the bottom (.ui) Then I've opened PySimpleGUIDesigner and loaded my file. Picked "groupBox" as target object name, click convert.

I get: error, no obj_name="groupBox" found. I'm running PySimpleGuiDesigner in python3 on MacOSX Catalina.

Best, awesome project btw.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>689</width>
    <height>520</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <widget class="QGroupBox" name="groupBox">
    <property name="geometry">
     <rect>
      <x>40</x>
      <y>30</y>
      <width>287</width>
      <height>144</height>
     </rect>
    </property>
    <property name="title">
     <string>GroupBox</string>
    </property>
    <layout class="QGridLayout" name="gridLayout_3">
     <item row="0" column="0">
      <layout class="QGridLayout" name="gridLayout_2">
       <item row="0" column="0">
        <widget class="QLabel" name="label">
         <property name="text">
          <string>Hello darkness my old friend</string>
         </property>
        </widget>
       </item>
       <item row="1" column="0">
        <widget class="QPushButton" name="pushButton">
         <property name="text">
          <string>hope</string>
         </property>
        </widget>
       </item>
       <item row="1" column="1">
        <widget class="QLineEdit" name="lineEdit"/>
       </item>
       <item row="2" column="0">
        <widget class="QPushButton" name="pushButton_2">
         <property name="text">
          <string>hello</string>
         </property>
        </widget>
       </item>
       <item row="2" column="1">
        <widget class="QLineEdit" name="lineEdit_2"/>
       </item>
      </layout>
     </item>
    </layout>
   </widget>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>689</width>
     <height>22</height>
    </rect>
   </property>
   <widget class="QMenu" name="menuTitle">
    <property name="title">
     <string>Title</string>
    </property>
   </widget>
   <addaction name="menuTitle"/>
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
 </widget>
 <resources/>
 <connections/>
</ui>
nngogol commented 4 years ago

So, your OS is MacOSX Catalina. I don't about this OS. It's works in my system: 3_725960364_forgif

I don't know yet. I needs a debugging.

akaped commented 4 years ago

Thanks for the reply, Ok, I will check on my end what is the error and why it doesn’t parse correctly the XML file.

Thanks

On 16 Apr 2020, at 14:07, nngogol notifications@github.com wrote:

So, your OS is MacOSX Catalina. I don't about this OS. It's works in my system: https://user-images.githubusercontent.com/25032060/79454362-c2c9b180-7ff3-11ea-8079-79ce1b1aa272.gif I don't know yet. I needs a debugging.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nngogol/PySimpleGUIDesigner/issues/10#issuecomment-614611680, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFULVPP4WXFVVWTRED2ODDLRM3YILANCNFSM4MI5D4JQ.