Re: Bug Report in PyQt5/uic/

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: Bug Report in PyQt5/uic/

Tony Fuller
A quick grep for objectName() reveals more affected files.

~/Downloads/PyQt5_gpl-5.10 $ grep -RIni "objectName()" .
./pyuic/uic/        if widget.objectName() ==
./pyuic/uic/                              item.objectNa
./pyuic/uic/                                    layout.
./pyuic/uic/                                    widget.
./pyuic/uic/                DEBUG("add action %s to
%s", action_name, widget.objectName())
./pyuic/uic/            DEBUG("%s is buddy of %s",
buddy, widget.objectName())
./pyuic/uic/                      buddy,
    if == styleName.lower():

On Mon, 2018-02-05 at 06:59 -0600, Gold Star wrote:

> I would like to report a bug in the file, part of
> PyQt5.uic.
> I am loading a custom widget from a .ui file using the following
> lines:
> <widget class="MyQGLWidget" name="GLWidget" native="true">
> ...
> </widget>
> and later in the .ui file:
>  <customwidgets>
>   <customwidget>
>    <class>MyQGLWidget</class>
>    <extends>QWidget</extends>
>    <header>qtopengl.h</header>
>   </customwidget>
>  </customwidgets>
> In my file is the custom class of
> MyGLWidget(QtOpenGL.QGLWidget).
> Now when I run this example, I get an error that "str type is not
> callable" and the backtrace contains as the problem and I
> can see the calls to DEBUG() have "widget.objectName()".
> A quick chmod 777 of the file, and a find and replace all from
> "widget.objectName()" to "widget.objectName" to drop the parenthesis
> lets my QMainWindow load perfectly.
> Is this the best way to report the bug? Thanks
PyQt mailing list    [hidden email]