Mercurial > pyntnclick
comparison pyntnclick/widgets/text.py @ 824:9f542ef6e498 pyntnclick
Reorganise code
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 29 Jan 2013 11:41:03 +0200 |
parents | 3a875256f795 |
children |
comparison
equal
deleted
inserted
replaced
823:1bf088e7865b | 824:9f542ef6e498 |
---|---|
1 from textwrap import wrap | 1 from textwrap import wrap |
2 | 2 |
3 import pygame | 3 import pygame |
4 from pygame.constants import SRCALPHA | 4 from pygame.constants import SRCALPHA |
5 | 5 |
6 from pyntnclick.widgets.base import Widget, Button, convert_color | 6 from pyntnclick.widgets.base import Widget, Button |
7 from pyntnclick.utils import convert_color | |
7 | 8 |
8 | 9 |
9 class TextWidget(Widget): | 10 class TextWidget(Widget): |
10 def __init__(self, pos, gd, text, size=None, fontname=None, fontsize=None, | 11 def __init__(self, pos, gd, text, size=None, fontname=None, fontsize=None, |
11 color=None): | 12 color=None): |