I recently decided to write my first app with Python and PySide. But I have a problem and hope you guys can help.
Python has continued to raise exceptions that "internal C + object" has been removed. With my limited experience with Python I understand that my object is going out of the scope and being removed by the waste python of Python.
Then I would have known how to design a multi-page application in Python in Python. And being able to keep my QWidgets, I can show the page again.
Thank you for your time.
Update (code) I will use the main kernel by calling: So am I going wrong about this? see here. If a QObject is exited from the scope in Python, it will be removed. You need to keep in mind the context of the object:
instancing = none def (): global instancing = instancing if == none: instancing = WPZKernel () Return instassing class WPZ kernel: win = any mainscreen = no def mainwindow (self): if self.win == none: self.win = GMKMainWindow (self) back self .win def main_panel (self): if self .mainscreen == None: self.mainscreen = GMKMainScreen (self.mainwindow ()) back to self. Mainscreen
import kernel kernel.stance (). Main_panel ()
Comments
Post a Comment