Added fixes for py3 problems
This commit is contained in:
parent
7425a888de
commit
0e1183ecd6
@ -394,11 +394,11 @@ readonly: whether to accept new text
|
|||||||
if ord(nc) in (194, 195):
|
if ord(nc) in (194, 195):
|
||||||
nc = chr(self.screen.getch())
|
nc = chr(self.screen.getch())
|
||||||
buf += nc
|
buf += nc
|
||||||
try:
|
# try:
|
||||||
tc = buf.decode()
|
tc = buf
|
||||||
done = True
|
done = True
|
||||||
except:
|
# except:
|
||||||
pass
|
# pass
|
||||||
return tc
|
return tc
|
||||||
|
|
||||||
def draw(self):
|
def draw(self):
|
||||||
@ -478,7 +478,7 @@ readonly: whether to accept new text
|
|||||||
self.ptr = len(self.currentLine)
|
self.ptr = len(self.currentLine)
|
||||||
else:
|
else:
|
||||||
self.setStatus("Something odd occured, readLine, down arrow")
|
self.setStatus("Something odd occured, readLine, down arrow")
|
||||||
elif c in (8, 263): # ^H, backSpace
|
elif c in (8, curses.KEY_BACKSPACE, 263): # ^H, backSpace
|
||||||
if self.ptr>0:
|
if self.ptr>0:
|
||||||
self.currentLine = u"%s%s" % (self.currentLine[:self.ptr-1],self.currentLine[self.ptr:])
|
self.currentLine = u"%s%s" % (self.currentLine[:self.ptr-1],self.currentLine[self.ptr:])
|
||||||
self.ptr -= 1
|
self.ptr -= 1
|
||||||
|
2
setup.py
2
setup.py
@ -6,7 +6,7 @@ def read(fname):
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "guicurses",
|
name = "guicurses",
|
||||||
version = "0.4",
|
version = "0.5.1",
|
||||||
author = "Manuel Cortez",
|
author = "Manuel Cortez",
|
||||||
author_email = "manuel@manuelcortez.net",
|
author_email = "manuel@manuelcortez.net",
|
||||||
description = "A set of utilities for building accessible applications with curses",
|
description = "A set of utilities for building accessible applications with curses",
|
||||||
|
Loading…
Reference in New Issue
Block a user