Close the main window and open a new one - PyQt

前端 未结 2 870
野性不改
野性不改 2021-01-12 14:28

In PyQt, is it any way to close the main window and open a new one?

In particular, I am trying to close a window and open the same window all over again. I\'ve trie

2条回答
  •  离开以前
    2021-01-12 14:59

    How about this:

    ....
    ....
    
    def selectMode( self ):
        self.close()
        self.field_params = params
    
        self.show()
    

提交回复
热议问题