Something
public text v1 · immutable def ShowRoms(self, index):
self.ViewState = STATE_ROMS
self.index = index
self.lstEmu.reset()
tmpCount = 0
for rom in os.listdir(self.rompath[index]):
tmpCount += 1
self.lstEmu.addItem(xbmcgui.ListItem(rom, index, "", ""))
self.lblCount.setLabel(str(tmpCount))