BeremizIDE.py
changeset 1756 08e4394ff4fb
parent 1751 c28db6f7616b
child 1757 0de89da92ee0
equal deleted inserted replaced
1755:624b9694cb0d 1756:08e4394ff4fb
   147     def _write(self):
   147     def _write(self):
   148         if self.output:
   148         if self.output:
   149             self.output.Freeze()
   149             self.output.Freeze()
   150             self.lock.acquire()
   150             self.lock.acquire()
   151             for s, style in self.stack:
   151             for s, style in self.stack:
   152                 if style is None: style = self.black_white
   152                 if style is None:
       
   153                     style = self.black_white
   153                 if style != self.black_white:
   154                 if style != self.black_white:
   154                     self.output.StartStyling(self.output.GetLength(), 0xff)
   155                     self.output.StartStyling(self.output.GetLength(), 0xff)
   155 
   156 
   156                 # Temporary deactivate read only mode on StyledTextCtrl for
   157                 # Temporary deactivate read only mode on StyledTextCtrl for
   157                 # adding text. It seems that text modifications, even
   158                 # adding text. It seems that text modifications, even