Ejemplo n.º 1
0
 def mangaedit(self):
     self.editm.setupUi(self)
     self.editm.back_main.clicked.connect(self.startmenu_2)
     self.editm.back_2.clicked.connect(self.startmanga)
     self.editm.add.clicked.connect(self.add_epm())
     self.editm.sub.clicked.connect(self.sub_ebm())
     self.editm.remove.clicked.connect(back.Manga().remove(list(back.Manga().view_all())[0]))
     self.editm.save.clicked.connect(self.save_m)
     self.show()  
Ejemplo n.º 2
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()
Ejemplo n.º 3
0
 def save_m(self):
     back.Manga().add(self.addm.title.text(), float(self.addm.ep.text()))
     back.Manga().save()
     self.startanime()
Ejemplo n.º 4
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()
Ejemplo n.º 5
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()