Hello Martin!

Unfortunately, I can't seem to make this solution work.

in the error log i get:

*   for i in range(self.graphWidget.count()): print(i)AttributeError:
'GraphicsLayoutWidget' object has no attribute 'count'. Did you mean:
'font'?*

So, I might be confused about how thing works, but I also tried
*self.graphWidget.layout* and it showed the presence of "built-in method
layout of GraphicsLayoutWidget object", but it doesn't work adding
*.clear()* nor *.count()* to it neither

I think I'm a bit lost with this theme, do you have a solution?

btw, thank you for the help and fast reply!

On Tue, Sep 20, 2022 at 9:16 PM Martin Chase <[email protected]> wrote:

> Hey Thomas,
>
> That's hopefully just a general PyQt question. It looks like it's answered
> here:
> https://stackoverflow.com/questions/4528347/clear-all-widgets-in-a-layout-in-pyqt
>
> Let us know if that doesn't work,
>  - Martin (he/him)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pyqtgraph" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pyqtgraph/WHhkfCL2YFQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyqtgraph/CAD_p8v0-tO6gGxVEsi4WXNCoT6v9M1CC0Ga2RV2mREFMUA0x3w%40mail.gmail.com
> <https://groups.google.com/d/msgid/pyqtgraph/CAD_p8v0-tO6gGxVEsi4WXNCoT6v9M1CC0Ga2RV2mREFMUA0x3w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/CACVxXt%2B5nP4PapEr4gbTuv8Trk9Pnm%3DHfj%3DHiWcxs37n6P-8dw%40mail.gmail.com.

Reply via email to