python - attributes of Mainwindow from childWindow -
how can make childwindow access and/or modify attribute mainwindow?
i have mainwindow opens different childwindows, dependeing on pressed button on mainwindow.
i of childwindows able modify attributes of mainwindow, cannot way access them.
when defining widget or window (your window possibly qwidget), specify it's parent in init-method (just pass parent-widget).
after that, use parentwdiget-method or set "link" parent-widget in attribute of child-window.
see http://srinikom.github.io/pyside-docs/pyside/qtgui/qwidget.html
Comments
Post a Comment