Exemplo n.º 1
0
 def animeedit(self):
     self.edita.setupUi(self)
     self.edita.back_main.clicked.connect(self.startmenu_2)
     self.edita.back_2.clicked.connect(self.startanime)
     self.edita.addd.clicked.connect(self.add_epa())
     self.edita.subb.clicked.connect(self.sub_eba())
     self.edita.remove.clicked.connect(back.Anime().remove(list(back.Anime().view_all())[0]))
     self.edita.save.clicked.connect(self.save_a)
     self.show()  
Exemplo n.º 2
0
 def retranslateUi(self, MainWindow):
     _translate = QtCore.QCoreApplication.translate
     MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
     if len(back.Anime().view_all()) > 0: self.anime.setText(_translate("MainWindow", list(back.Anime().view_all())[0]))
     else: self.anime.setText(_translate("MainWindow", "None"))
     self.addmanga.setText(_translate("MainWindow", "Add manga"))
     self.back.setText(_translate("MainWindow", "AniTrack"))
Exemplo n.º 3
0
 def startmenu_2(self):
     self.menu_2.setupUi(self)
     if len(list(back.Anime().view_all())) == 0: 
         self.menu_2.anime.clicked.connect(self.addanime)
     else:
         self.menu_2.anime.clicked.connect(self.startanime)
     if len(list(back.Manga().view_all())) == 0: 
         self.menu_2.manga.clicked.connect(self.addmanga)
     else:
         self.menu_2.manga.clicked.connect(self.startmanga)
     if len(list(back.Webtoon().view_all())) == 0: 
         self.menu_2.webtoon.clicked.connect(self.addwebtoon)
     else:
         self.menu_2.webtoon.clicked.connect(self.startwebtoon)
     
     self.show()
Exemplo n.º 4
0
 def save_a(self):
     back.Anime().add(self.adda.title.text(), float(self.adda.ep.text()), self.adda.version.text())
     back.Anime().save()
     self.startanime()
Exemplo n.º 5
0
 def sub_epa(self):
     if len(self.edita.ep.text()) != '': 
         back.Anime().sub_eb(list(back.Anime().view_all())[0], float(self.edita.ep.text()))
         self.animeedit()
     else: 
         self.animeedit()
Exemplo n.º 6
0
 def sub_epw(self):
     if len(self.editw.ep.text()) != '': 
         back.Webtoon().sub_eb(list(back.Anime().view_all())[0], float(self.editw.ep.text()))
         self.webtoonedit()
     else: self.webtoonedit()  
Exemplo n.º 7
0
 def sub_epm(self):
     if len(self.editm.ep.text()) != '': 
         back.Manga().sub_eb(list(back.Anime().view_all())[0],float(self.editm.ep.text()))
         mangaedit
     else: 
         self.mangaedit()
Exemplo n.º 8
0
 def add_epm(self):
     if len(self.editm.ep.text()) != '':
         back.Manga().add_ep(list(back.Anime().view_all())[0],float(self.editm.ep.text()))
         self.mangaedit()
     else: 
         self.mangaedit()
Exemplo n.º 9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1026, 595)
        MainWindow.setStyleSheet("background-color: rgb(208, 255, 254);\n" "")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.back_2 = QtWidgets.QPushButton(self.centralwidget)
        self.back_2.setGeometry(QtCore.QRect(300, 20, 241, 81))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(20)
        self.back_2.setFont(font)
        self.back_2.setStyleSheet("background-color: rgb(82, 255, 255);")
        self.back_2.setObjectName("back_2")
        self.back_main = QtWidgets.QPushButton(self.centralwidget)
        self.back_main.setGeometry(QtCore.QRect(0, 0, 271, 121))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(50)
        self.back_main.setFont(font)
        self.back_main.setStyleSheet("background-color: rgb(25, 120, 200);")
        self.back_main.setObjectName("back_main")
        self.save = QtWidgets.QToolButton(self.centralwidget)
        self.save.setGeometry(QtCore.QRect(630, 20, 241, 81))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(20)
        self.save.setFont(font)
        self.save.setStyleSheet("background-color: rgb(82, 255, 255);\n"
                                "background-color: rgb(0, 255, 0);")
        self.save.setObjectName("save")
        self.title = QtWidgets.QLabel(self.centralwidget)
        self.title.setGeometry(QtCore.QRect(70, 140, 901, 41))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(35)
        self.title.setFont(font)
        self.title.setText(list(back.Anime().view_all())[0])
        self.title.setObjectName(list(back.Anime().view_all())[0])
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(90, 220, 191, 51))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(35)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.ep = QtWidgets.QLineEdit(self.centralwidget)
        self.ep.setGeometry(QtCore.QRect(100, 290, 241, 71))
        self.ep.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.ep.setObjectName("ep")
        self.addd = QtWidgets.QPushButton(self.centralwidget)
        self.addd.setGeometry(QtCore.QRect(80, 400, 151, 131))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(50)
        self.addd.setFont(font)
        self.addd.setStyleSheet("background-color: rgb(0, 255, 0);")
        self.addd.setObjectName("add")
        self.subb = QtWidgets.QPushButton(self.centralwidget)
        self.subb.setGeometry(QtCore.QRect(280, 400, 151, 131))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(50)
        self.subb.setFont(font)
        self.subb.setStyleSheet("background-color: rgb(255, 0, 0);")
        self.subb.setObjectName("sub")
        self.remove = QtWidgets.QPushButton(self.centralwidget)
        self.remove.setGeometry(QtCore.QRect(560, 400, 411, 121))
        font = QtGui.QFont()
        font.setFamily("Gabriola")
        font.setPointSize(45)
        self.remove.setFont(font)
        self.remove.setStyleSheet(
            "alternate-background-color: rgb(255, 0, 0);\n"
            "background-color: rgb(255, 0, 0);")
        self.remove.setObjectName("remove")
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)