Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-987

UICParser.column_counter missing, throws error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.12.2
    • Fix Version/s: 5.12.4
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      I happen to be using this in a Windows 10 environment, but, I believe it is platform-independent.
    • Platform/s:
      All
    • Commits:
      72104d1cb6a1ea5b3c529532f2ad7491d26a89a9 (pyside/pyside-tools/5.12)

      Description

      UICParser class (pyside2uic/uicparser.py:640) throws an AttributeError when it tries to reference self.column_counter.  This attribute is  set in the createWidget method, however, this has apparently not yet been called when the attribute is referenced.

      Adding self.column_counter = 0 in UICParser._init_ fixes the problem.

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-987
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              nicks Nick Seidenman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes