Exemple #1
0
 def keyPressEvent(self, e):
     if e.key() == QtCore.Qt.Key_Escape:
         self.close()
     elif e.key() == QtCore.Qt.Key_F11:
         self.bill_list = vote_scraper.get_vote_dictionary_all(self.member_list[str(self.member_str)])
         self.bill_list_display = search_bill_keywords.select_bills(self.bill_list, self.keyword_str)
         self.update_table()
Exemple #2
0
 def member_changed(self, memstr):
     if self.member_str == memstr:
         return
     self.member_str = memstr
     if memstr == "Sir Donald Trump":
         self.bill_list = self.mister_president()
         self.update_table()
         print("member: the president")
         return
     self.bill_list = vote_scraper.get_vote_dictionary(self.member_list[str(self.member_str)])
     self.bill_list_display = search_bill_keywords.select_bills(self.bill_list, self.keyword_str)
     self.update_table()
     print("member: " + memstr)
Exemple #3
0
 def keyword_changed(self, keystr):
     self.keyword_str = keystr
     self.bill_list_display = search_bill_keywords.select_bills(self.bill_list, self.keyword_str)
     self.update_table()
     print("keyword: " + keystr)