示例#1
0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

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

import Queue

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
示例#2
0
#!/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()

message = "hello\n"
while 1:
    time.sleep(1)
    try:
        data = TB.get("outbox")
        print data
示例#3
0
#!/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()

message = "hello\n"
while 1:
示例#4
0
# See the License for the specific language governing permissions and
# limitations under the License.

import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox
from LikeFile import LikeFile

background().start()

import Queue

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