I need my dialog box to close when the ok button is clicked. How do I do that?
Assuming you created the button you should be able to just set the button click event as follows:
button.clicked.connect(self.close)
where button
is the button name.
Although since you did not provide any code with your question it's hard to know if this is what you're asking for...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.