Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/TextEntry.GetInsertionPoint.1.py
2012-04-10 03:16:37 +00:00

11 lines
278 B
Python

def GetCurrentChar(textCtrl):
pos = textCtrl.GetInsertionPoint()
if pos == textCtrl.GetLastPosition():
return ''
return textCtrl.GetValue()[pos]