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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -