X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftext.py;h=74ca641bf7c1186144c94a2b03123b4e078677ec;hb=936bbec1d3dcf3109a4e4c1d08f322e8938dc9fe;hp=9ecd0db47322287e214a0682b063a4b18ee2c9cf;hpb=3f055c8710c26d79bb8c6d18956c454188a5057b;p=naja.git diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 9ecd0db..74ca641 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -90,9 +90,9 @@ class TextBoxWidget(TextWidget): def draw(self, surface): self.surface.fill(self.bg_colour) - y = 0 + y = self.pos[1] for line in self.lines: - surface.blit(line, (self.padding, y + self.padding)) + surface.blit(line, (self.pos[0] + self.padding, y + self.padding)) y += line.get_rect().height self.text_rect = surface.get_rect() if not self.size: