Parentless widgets in `__init__` in UI
- Concern : UI
- Platform : macOS/Linux/Windows
- Problem Description : Some widgets appear upon running the ui.py and disappear instantly (ghost widgets). This might be due any of the followings:
-
.show()command is used before defining a parent for a certain widget. - a widget is created in the
__init__and yet to have a parent inself.
Solution (maybe):
Take out everything out of __init__ or move widgets after their parent in self is created.