tuikit/editbox.py
changeset 18 e6c3a5ee91aa
parent 9 7175ed629a76
child 32 088b92ffb119
equal deleted inserted replaced
17:5be7cc43402e 18:e6c3a5ee91aa
     1 # -*- coding: utf-8 -*-
     1 # -*- coding: utf-8 -*-
     2 
     2 
     3 from .widget import Widget
     3 from tuikit.widget import Widget
       
     4 
     4 
     5 
     5 class EditBox(Widget):
     6 class EditBox(Widget):
     6     def __init__(self, width=20, height=20, text=''):
     7     def __init__(self, width=20, height=20, text=''):
     7         Widget.__init__(self, width, height)
     8         Widget.__init__(self, width, height)
     8 
     9 
   216                 self.lines[self.cline] = self.lines[self.cline] + self.lines[self.cline+1]
   217                 self.lines[self.cline] = self.lines[self.cline] + self.lines[self.cline+1]
   217                 del self.lines[self.cline+1]
   218                 del self.lines[self.cline+1]
   218                 self.handle('areasize')
   219                 self.handle('areasize')
   219         else:
   220         else:
   220             self.lines[self.cline] = ln[:cpos] + ln[cpos+1:]
   221             self.lines[self.cline] = ln[:cpos] + ln[cpos+1:]
       
   222