Update screen_utils.py
This commit is contained in:
parent
096614ab3f
commit
5e4f4832c1
@ -35,10 +35,10 @@ def createScreenEventData(content):
|
|||||||
}
|
}
|
||||||
return eventData.copy()
|
return eventData.copy()
|
||||||
|
|
||||||
def hasMore(fd, timetout=0.2):
|
def hasMore(fd, timetout=0.1):
|
||||||
r, _, _ = select.select([fd], [], [], timetout)
|
r, _, _ = select.select([fd], [], [], timetout)
|
||||||
return (fd in r)
|
return (fd in r)
|
||||||
def hasMoreWhat(fdList, timetout=0.2):
|
def hasMoreWhat(fdList, timetout=0.1):
|
||||||
if not isinstance(fdList, list):
|
if not isinstance(fdList, list):
|
||||||
return []
|
return []
|
||||||
elif fdList == []:
|
elif fdList == []:
|
||||||
|
Loading…
Reference in New Issue
Block a user