#!/usr/bin/python

import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()

import Queue
TD = LikeFile(
         TextDisplayer(position=(20, 90),
                       text_height=36,
                       screen_width=900,
                       screen_height=200,
                       background_color=(130,0,70),
                       text_color=(255,255,255)
                      )
     ).activate()

TB = LikeFile(
        Textbox(position=(20, 340),
                text_height=36,
                screen_width=900,
                screen_height=400,
                background_color=(130,0,70),
                text_color=(255,255,255)
               )
     ).activate()

while 1:
    time.sleep(1)
    print "."
    try:
       print TB.get()
    except Queue.Empty:
       pass
    TD.put("hello\n", "inbox")

@@ -778,16 +778,36 @@
 vate()%0A%0A
+message = %22hello%5Cn%22%0A
 while 1:
@@ -859,22 +859,72 @@
     
-print TB.get()
+data,box = TB.get()%0A       print data, box%0A       message = data
 %0A   
@@ -967,25 +967,23 @@
  TD.put(
-%22hello%5Cn%22
+message
 , %22inbox

Test harness changed to forward the message recieved over the like-file interface to the other one, using it's like-file interface