Home > other >  PyQt5 ComboBox to secure a page redirects order problem
PyQt5 ComboBox to secure a page redirects order problem

Time:10-07

The UI interface on the front end
Self. PushButton_2. SetText (_translate (" Form ", "enter the page redirects"))
Self.com boBox. CurrentIndexChanged. Connect (self selectionchange)

Redirects function
Def selectionchange (self) :
Print (self.com boBox. CurrentIndex ())
If (self.com boBox currentIndex ()==3) :
Self. PushButton_2. Clicked. Connect (self. Skip2KHupdate)
If (self.com boBox currentIndex ()==1) :
Self. PushButton_2. Clicked. Connect (self test)
If (self.com boBox currentIndex ()==0) :
Self. PushButton_2. Clicked. Connect (self. Test2)

After repeated page redirects will appear a strange phenomenon:
Is repeated all the pages before the current page (for example the first turned to jump to A; Turn the second jump going to B, the result is first to A to B; For the third time to switch to jump to C, A, the result is come first and then A B, closed appeared after AB C), strives for the answer,

CodePudding user response:

No one know? A stack or queue?
  • Related