示例#1
0
文件: textbox.py 项目: anmitsu/pyful
 def __init__(self, name=None):
     Widget.__init__(self, name)
     self.panel.leaveok = False
     self.text = ""
     self.textmap = []
     self.prompt = ""
     self.cursor = 0
示例#2
0
文件: listbox.py 项目: anmitsu/pyful
 def __init__(self, title=None):
     Widget.__init__(self, title)
     self.list = []
     self.title = title
     self.cursor = 0
     self.scrolltop = 0
     self.lb = 0
     self.maxrow = 1
示例#3
0
文件: dialog.py 项目: anmitsu/pyful
 def __init__(self, name=None):
     Widget.__init__(self, name)
     self.message = ""
     self.options = []
     self.cursor = 0
     self.result = None
     self.listbox = ListBox()
     self.listbox.lb = -1
示例#4
0
文件: filer.py 项目: anmitsu/pyful
 def __init__(self):
     Widget.__init__(self, "Filer")
     y, x = self.stdscr.getmaxyx()
     self.titlebar = curses.newwin(1, x, 0, 0)
     self.titlebar.bkgd(look.colors["Titlebar"])
     self.navigationbar = NavigationBar()
     self.workspaces = []
     self.cursor = 0
     self.default_init()
示例#5
0
文件: filer.py 项目: anmitsu/pyful
 def __init__(self):
     Widget.__init__(self, "NavigationBar")
     self.refresh()
示例#6
0
文件: message.py 项目: anmitsu/pyful
 def __init__(self):
     Widget.__init__(self, "Message")
     self.messages = []
     self.timer = None
     self.messagebox = MessageBox()
     self.confirmbox = ConfirmBox()