コード例 #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()