Nov-18-2019, 06:53 PM
Dear users,
I use an application where a gui is started:
<item>
<widget class="QPushButton" name="pbStart">
<property name="text">
<string>Starten</string>
</property>
</widget>
</item>
But what I need is, that after loading the GUI a function is called (without manually clicking)
that starts "self.run".
Could anybody give me a hint please?
Thank you very much, Kai
I use an application where a gui is started:
class alkisImportDlg(QDialog, alkisImportDlgBase):
def __init__(self):
QDialog.__init__(self)
self.setupUi(self)
self.setWindowIcon(QIcon('logo.svg'))
self.setWindowFlags(Qt.WindowMinimizeButtonHint)
self.leSERVICE.setText(s.value("service", ""))
self.leHOST.setText(s.value("host", "xxxx.xxxxxren.intern"))
self.lePORT.setText(s.value("port", "5432"))
self.leDBNAME.setText(s.value("dbname", "alkisnas7"))
.....
......
[color=#E74C3C]self.pbStart.clicked.connect(self.run)[/color]In my .ui-file the button is created like:<item>
<widget class="QPushButton" name="pbStart">
<property name="text">
<string>Starten</string>
</property>
</widget>
</item>
But what I need is, that after loading the GUI a function is called (without manually clicking)
that starts "self.run".
Could anybody give me a hint please?
Thank you very much, Kai
