[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] tab rendering in text?



Is there a way to make pygame render the tabs in text properly?


How about just replacing them with spaces before rendering?

a = 'some\tstring\twith tabs and spaces'
b = a.replace('\t', ' '*4)

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus