changeset 87 | ee5ea9671f28 |
parent 62 | 2f61931520c9 |
child 89 | 94f5baef19ac |
86:0978fb755d31 | 87:ee5ea9671f28 |
---|---|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 from tuikit.core.widget import Widget |
|
4 |
|
5 |
|
6 class Label(Widget): |
|
7 |
|
8 def __init__(self, label=''): |
|
9 Widget.__init__(self) |
|
10 self.sizereq.update(len(label), 1) |
|
11 self.label = label |
|
12 #self.color = 'normal' |
|
13 |
|
14 def draw(self, buffer, x, y): |
|
15 #ev.driver.pushcolor(self.color) |
|
16 buffer.puts(x, y, self.label) |