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

UICParser.column_counter missing, throws error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.12.4
    • 5.12.2
    • PySide
    • None
    • I happen to be using this in a Windows 10 environment, but, I believe it is platform-independent.
    • All
    • 72104d1cb6a1ea5b3c529532f2ad7491d26a89a9 (pyside/pyside-tools/5.12)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes