[python-win32] PyCEdit issue

Marc-André Belzile mbelzile at softimage.com
Thu Aug 14 16:15:24 CEST 2008


Hi,
 
does anyone know why all the cr/lf characters are ignored by PyCEdit when used in a dialog ? There is no such problem with a static control though but I want to be able to select/copy text from the control.
 
Here's my code snipet...
 
folder = os.path.dirname(__file__)
f = open(folder + '/' + 'help.txt','r')
template.append(['EDIT', f.read(), self.IDC_EDIT_HELP, (10, 10, w-20, h-35), win32con.WS_CHILD | win32con.WS_VISIBLE | win32con.ES_LEFT | win32con.ES_MULTILINE | win32con.WS_BORDER |win32con.ES_AUTOVSCROLL])
f.close()

thanks
 
-mab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080814/0e84b208/attachment.htm>


More information about the python-win32 mailing list