Mercurial > boomslang
comparison gamelib/custom_widgets.py @ 693:c8b683dd56d3 pyntnclick
Better modal message and result handling.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 14 Feb 2012 15:36:28 +0200 |
parents | 497b6d7c55e7 |
children | efa58c92b304 |
comparison
equal
deleted
inserted
replaced
692:d6ded808cc33 | 693:c8b683dd56d3 |
---|---|
1 """Custom widgets for Suspened Sentence""" | 1 """Custom widgets for Suspened Sentence""" |
2 | 2 |
3 import pygame | 3 import pygame |
4 from pyntnclick.widgets.text import ModalWrappedTextLabel | 4 from pyntnclick.widgets.text import WrappedTextLabel |
5 | 5 |
6 | 6 |
7 class JimLabel(ModalWrappedTextLabel): | 7 class JimLabel(WrappedTextLabel): |
8 """Custom widget for JIM's speech""" | 8 """Custom widget for JIM's speech""" |
9 | 9 |
10 def __init__(self, gd, mesg): | 10 def __init__(self, gd, mesg): |
11 rect = pygame.Rect((0, 0), (1, 1)) | 11 rect = pygame.Rect((0, 0), (1, 1)) |
12 super(JimLabel, self).__init__(rect, gd, | 12 super(JimLabel, self).__init__(rect, gd, |