def on_button(self): title = self.titleField.get() admin = Admin("Admin", "11111") book = Book(title, 0) admin.AddBook(book)