there are two class: setofbuttontons ,
first class - the main class,
and the second class must build buttons on the skeleton on the skeleton Windows.
So, how can you properly convey the object of the window of the buttons to, so that you can completely control this object from the class of buttons?
, I already tried to create an object of class setbuttTons when initializing the class of setttons and transmit it to the window, transmit it to the window, transmit it to the window It tued out to be built buttons, but if it came to check for pressing and performing any action, then everything broke.
help please. Below I give an approximate code of two classes:
# File Projectpaint.main from Projectpaint.buttons Import Sys Class Mainwindow: DEF __init __ (Self): Super () .__ Init __ () __name__ == '__main __': app = qpplication (sys.argv) exemplar = mainwindow () exemplar.show () sys.exit (app.exec _ ()) --------------------------------------------- # File Project.buttons from Pyqtwidges Import * from Pyqt5.qtgui import * class setofbuttons (qwidget): def __init __ (self): super () .__ Init __ () de Build_main_buttons (Self): # This method should build buttons Pass PRE>
question@mail.ru
·