Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def run(self, window):
- end = False
- while not end:
- window.clear()
- window.addstr(0,0,self.title, curses.A_BOLD)
- (_,width) = window.getmaxyx()
- width -= 8
- for i in range (len(self.options) ):
- option = self.options[i][0]
- if len(option) > width:
- option = (option[:width-5]+'...')
- window.addstr(i+2, 4, option)
- window.addstr(self.selection+2,1,"-->")
- window.refresh()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement