Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [PyGUI] Pressing button by code after gui is loaded
#1
Dear users,

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
Quote
#2
Question is PyGui another version of Qt -- like PyQt and PySide2 ?? or is it one of these latter two?
silly American kah-nig-hit
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 592 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp
  [Tkinter] Selected radio button in push button in Tkinter prashantfunde91 1 7,204 Jun-22-2017, 05:27 PM
Last Post: DeaD_EyE

Forum Jump:


Users browsing this thread: 1 Guest(s)