Exemple #1
0
 def webtoonedit(self):
     self.editw.setupUi(self)
     self.editw.back_main.clicked.connect(self.startmenu_2)
     self.editw.back_2.clicked.connect(self.startwebtoon)
     self.editw.addd.clicked.connect(self.add_epw())
     self.editw.subb.clicked.connect(self.sub_ebw())
     self.editw.remove.clicked.connect(back.Webtoon().remove(list(back.Webtoon().view_all())[0]))
     self.editw.save.clicked.connect(self.save_w)
     self.show()  
Exemple #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()
Exemple #3
0
 def save_w(self):
     back.Webtoon().add(self.addw.title.text(), float(self.addw.ep.text()))
     back.Webtoon().save()
     self.startanime()
Exemple #4
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()