<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello,<br><br></div>I am trying to make a small program (slightly modify the CalendarWizard, to be more precise, to fill my needs) and am running into a problem.<br><br></div>A page is split into cells, each of which contains the date of the month. For couple of dates, an additional text should be added (an event or something).<br><br></div>Two different styles are available -- one for the date and one for the event name.<br><br></div>Here is the logic that I try to put in place:<br><br></div>setText (day,cel)<br></div>selectText(0,len(day),cel)<br>setStyle(self.pStyleDate)<br>insertText(str('\n'), -1, cel)<br>insertText(str(self.events[ev]), -1, cel)<br>selectText(len(day), len(str(self.events[ev]).encode('iso-8859-5')),  cel)<br>setStyle(self.pStyleEvent)<br><br></div>I am unable to have a correctly formatted text. Could someone help please. If you need, I can give you the exact method calls.<br><br></div>Thanks in advance.<br><br></div>Best regards,<br><br>--<br></div>