(self, centerPt, width)
| 764 | class Entry(GraphicsObject): |
| 765 | |
| 766 | def __init__(self, centerPt, width): |
| 767 | GraphicsObject.__init__(self, []) |
| 768 | self.anchor = centerPt.clone() |
| 769 | #print self.anchor |
| 770 | self.width = width |
| 771 | #self.text = tk.StringVar(_root) |
| 772 | #self.text.set("") |
| 773 | self.text = _tkCall(tk.StringVar, _root) |
| 774 | _tkCall(self.text.set, "") |
| 775 | self.fill = "gray" |
| 776 | self.color = "black" |
| 777 | self.font = DEFAULT_CONFIG['font'] |
| 778 | self.entry = None |
| 779 | |
| 780 | def _draw(self, canvas, options): |
| 781 | p = self.anchor |