import juliet_module
from pygame import Rect, font, draw

class text_module(juliet_module.module):
    mod_name = "text_module"
    mod_id = -1
    mod_size = Rect(0,0,0,0)

    module_font = None
    text = "Hello World!"

    def __init__(self, _id):
        self.mod_id = _id
        self.mod_size = Rect(0,0,720,100)
        self.module_font = font.Font("Comme-Thin.ttf", 100)

    def draw(self, surf):
        text_surface = self.module_font.render(self.text, True, (255,255,255))
        dirty = surf.blit(text_surface, (0,-30))
        draw.rect(surf, (255,255,255), surf.get_rect(), 4)
        return dirty

    def update(self):
        "Update this module's internal state (do things like time updates, get weather, etc."
        print("Update call of text module")

def new_module(_id):
    return text_module(_id)

@@ -141,28 +141,28 @@
  -1%0A    mod_
-size
+rect
  = Rect(0,0,
@@ -165,16 +165,36 @@
 0,0,0,0)
+%0A    changed = False
 %0A%0A    mo
@@ -225,22 +225,12 @@
 t = 
-%22Hello World!%22
+None
 %0A%0A  
@@ -253,16 +253,27 @@
 elf, _id
+, init_text
 ):%0A     
@@ -310,36 +310,24 @@
 elf.
-mod_size = Rect(0,0,720,100)
+text = init_text
 %0A   
@@ -382,10 +382,93 @@
 f%22, 
+50)%0A        self.mod_rect = Rect((0,0), self.module_font.size(self.text)).inflate(
 10
+,
 0)%0A%0A
@@ -489,24 +489,112 @@
 elf, surf):%0A
+        %22Draw this module to the surface provided. Returns a Rect of the affected area%22%0A
         text
@@ -705,12 +705,10 @@
 e, (
-0,-3
+5,
 0))%0A
@@ -823,16 +823,9 @@
    %22
-Update t
+T
 his 
@@ -837,115 +837,31 @@
 e's 
-internal state (do things like time updates, get weather, etc.%22%0A        print(%22Update call of text module%22)
+text cannot be updated%22
 %0A%0Ade
@@ -876,16 +876,30 @@
 dule(_id
+, text = %22...%22
 ):%0A    r
@@ -919,10 +919,16 @@
 dule(_id
+, text
 )%0A

Update text_module.py to have an initialization string