costruisce interfaccia + correzione nomi bottoni

This commit is contained in:
2019-12-01 15:41:30 +01:00
parent 9425262e7a
commit a0ff77ff33
5 changed files with 38 additions and 16 deletions

View File

@@ -22,7 +22,27 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
self.ui.wgt_main.addTab(self.titolo, "Titolo")
self.ui.wgt_main.addTab(self.titoloavanzate, "AvanzateTitolo")
self.ui.wgt_main.addTab(self.selezout, "SelezioneOutput")
self.titolo.titoloui.btn_avanti.clicked.connect(self.nextTab)
self.titoloavanzate.titoloavanzateui.btn_avanti.clicked.connect(self.nextTab)
self.selezout.selezoutui.btn_avanti.clicked.connect(self.nextTab)
self.titolo.titoloui.btn_indietro.clicked.connect(self.prevTab)
self.titoloavanzate.titoloavanzateui.btn_indietro.clicked.connect(self.prevTab)
self.selezout.selezoutui.btn_indietro.clicked.connect(self.prevTab)
pass
def nextTab(self):
self.ui.wgt_main.setCurrentIndex(self.ui.wgt_main.currentIndex()+1)
pass
def prevTab(self):
self.ui.wgt_main.setCurrentIndex(self.ui.wgt_main.currentIndex()-1)
pass
#############################################################
####################### INTERFACES ##########################
#############################################################
class bananaTitolo(PyQt5.QtWidgets.QWidget):
def __init__(self):
@@ -44,6 +64,8 @@ class bananaSelezOut(PyQt5.QtWidgets.QWidget):
self.selezoutui = Ui_selezout()
self.selezoutui.setupUi(self)
pass
#############################################################
####################### MAIN ################################
#############################################################