Re: [PySide] Problem with garbage collection

2023-02-09 Thread David Ching
>from: "henry.w...@yahoo.com " >mailto:henry.w...@yahoo.com> > > >Thanks for looking that up. It knew learning C++ would make me a better >Python programmer :) > Seems too hard though... Sure, I learned Qt with C++ and only recently switched to Python for

Re: [PySide] Problem with garbage collection

2023-02-09 Thread henry.wede--- via PySide
David, Thanks for looking that up.  It knew learning C++ would make me a better Python programmer :)  Seems too hard though... My method probably does seem strange, but I will try to explain it.  I have to store a bunch of lists containing both commands and robot positions.  I made different

Re: [PySide] Problem with garbage collection

2023-02-09 Thread David Ching
>from: "henry.w...@yahoo.com" Henry> it seems like the clear method of the listwidget was the problem.? Here is what I tried. [...] The objects are ~just~ created from XML. When I display those items using the ListWidget .addItem() method they display correctly.? But only the first time!? If I

Re: [PySide] Problem with garbage collection

2023-02-09 Thread henry.wede--- via PySide
Hello, I think that I have a solution... it seems like the clear method of the listwidget was the problem.  Here is what I tried. Last night I taught each of the objects how to save themselves as XML and recreate themselves from XML.  Buttons were added to load & save the "project".  Now the

Re: [PySide] Problem with garbage collection

2023-02-08 Thread henry.wede--- via PySide
Hello, Thank you for your reply.  I will have to think about the best way to make this work within the program.  I am still confused a bit. Currently, the user has buttons and context menus to create the custom items in the list view.  This is nice for them because they can easily see the