Python: PyQt Popup Window

后端 未结 2 1195
时光取名叫无心
时光取名叫无心 2020-12-08 01:04

So I\'ve been creating my GUI with Qt for my Python application. I\'ve now come to a situation where after a button has been pushed the appropriate deferred gets executed, w

2条回答
  •  情书的邮戳
    2020-12-08 01:49

    Generally, you just show multiple parentless windows with someQWidget.show(), like:

    w1 = QLabel("Window 1")
    w2 = QLabel("Window 2")
    w1.show()
    w2.show()
    

    But most likely, you want a modal standard Dialog like this. Also be sure to understand modal dialogs.

提交回复
热议问题