equal
deleted
inserted
replaced
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 |