diff gamelib/custom_widgets.py @ 854:3577c51029f1 default tip

Remove Suspended Sentence. pyntnclick is the library we extracted from it
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 21 Jun 2014 22:15:54 +0200
parents f95830b58336
children
line wrap: on
line diff
--- a/gamelib/custom_widgets.py	Sat Jun 21 22:04:35 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-"""Custom widgets for Suspened Sentence"""
-
-import pygame
-from pyntnclick.widgets.text import WrappedTextLabel
-
-
-class JimLabel(WrappedTextLabel):
-    """Custom widget for JIM's speech"""
-
-    def __init__(self, gd, mesg):
-        pos = (0, 0)
-        size = None
-        super(JimLabel, self).__init__(pos, gd, size=size,
-                text=mesg, fontname='Monospace.ttf', fontsize=20,
-                bg_color=pygame.Color(255, 175, 127, 191),
-                color=pygame.Color(0, 0, 0),
-                border_color=pygame.Color(127, 15, 0))
-
-    def prepare(self):
-        # Centre the widget
-        super(JimLabel, self).prepare()
-        self.rect.center = (self.gd.constants.screen[0] / 2,
-                self.gd.constants.screen[1] / 2)