# -*- coding: utf-8 -*-
#!/usr/bin/env python
background_image_filename = 'sushiplate.jpg'
mouse_image_filename = 'fugu.png'
import pygame
from pygame.locals import *
from sys import exit
import pyfribidi
pygame.init()
txt=pyfribidi.log2vis(u'الحمد لله')
screen = pygame.display.set_mode((640, 480), 0, 32)
pygame.display.set_caption("الحمد لله")
background = pygame.image.load(background_image_filename).convert()
mouse_cursor = pygame.image.load(mouse_image_filename).convert_alpha()
font = pygame.font.SysFont("arial", 50);
while True:
	for event in pygame.event.get():
		if event.type == QUIT:
			exit()
	
	screen.blit(background, (0,0))
	x, y = pygame.mouse.get_pos()
	x-= mouse_cursor.get_width() / 2
	y-= mouse_cursor.get_height() / 2
	screen.blit(mouse_cursor, (x, y))
	screen.blit(font.render(txt,True,(0, 0, 0)),(0,0))
	pygame.display.update()

