Advertisement
Guest User

Untitled

a guest
Feb 17th, 2015
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1.     def addHacks(self):
  2.         '''
  3.        Updates our list widget with the hacks in the XML.
  4.        '''
  5.         for hack in self.categories:
  6.             for mod in self.categories[hack]:
  7.                 self.listWidget.addItem(mod)
  8.    
  9.         # Also setting self.currentlySelected to our currently selected item (duh)
  10.         self.currentlySelected = self.listWidget.currentItem()
  11.         # self.currentlySelectedDesc = self.
  12.  
  13.         '''
  14.        Changing the info on the right when a hack is selected...
  15.        '''
  16.         self.listWidget.itemSelectionChanged.connect(self.changeHackModifier)
  17.  
  18.     def changeHackModifier(self):
  19.         self.memtitle.setText(self.currentlySelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement