| 119 | self.splitter.SetSashPosition(200) |
| 120 | |
| 121 | def AppendStyledText(self, line): |
| 122 | ins = self.log_reader.GetInsertionPoint() |
| 123 | leng = len(line) |
| 124 | if(leng > 200): |
| 125 | line=line[0:200] |
| 126 | leng=200 |
| 127 | |
| 128 | self.log_reader.AppendText(line) |
| 129 | |
| 130 | self.bold = wx.Font(wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.BOLD) |
| 131 | |
| 132 | try: |
| 133 | if(line[0:5] == "wine:"): |
| 134 | self.log_reader.SetStyle(ins, ins+5, wx.TextAttr("red", wx.NullColour)) |
| 135 | elif(line[0:6] == "fixme:"): |
| 136 | self.log_reader.SetStyle(ins, ins+leng, wx.TextAttr(wx.Colour(100,100,100), wx.NullColour)) |
| 137 | elif(self.logtype == 1 and leng > 19 and line[17:20] == " - "): |
| 138 | self.log_reader.SetStyle(ins, ins+17, wx.TextAttr("black", wx.NullColour, self.bold)) |
| 139 | elif(self.logtype == 0 and leng > 21 and line[19:22] == " - "): |
| 140 | self.log_reader.SetStyle(ins, ins+19, wx.TextAttr("black", wx.NullColour, self.bold)) |
| 141 | else: |
| 142 | self.log_reader.SetStyle(ins, ins+leng, wx.TextAttr("black", wx.NullColour)) |
| 143 | except wx._core.PyAssertionError: |
| 144 | pass |
| 145 | |
| 146 | def AutoReload(self, event): |
| 147 | if(self.logfile != "" and self.logfile != None): |