[Sugar-devel] [PATCH] sl#2544 Adding Smiley Support to Chat Application

Paul Fox pgf at laptop.org
Sun Dec 26 18:38:06 EST 2010


 > +		
 > +"""
 > +angel=1.png
 > +angry=2.png
 > +cool=3.png
 > +devil=4.png
 > +grin=5.png
 > +neutral=6.png
 > +sad=7.png
 > +shock =8.png
 > +blush=9.png
 > +smile=10.png
 > +tongue=11.png
 > +wink=12.png
 > +"""
 > +
 > +def get_smiley(text):
 > +		file_names={
 > +		"O:)"	: 		"1.png" , 
 > +		";(" 	:		"2.png", 
 > +		"B-)" 	: 		"3.png",
 > +		">:>"	: 		"4.png",
 > +		":D" 	:		"5.png",
 > +		":|" 	: 		"6.png",
 > +		":(" 	: 		"7.png" , 
 > +		":O"	:		"8.png",
 > +		":$" 	: 		"9.png",
 > +		":)" 	: 		"10.png" ,
 > +		":P" 	: 		"11.png",		
 > +		";)" 	: 		"12.png",		
 > +		}

heh.  somehow i find it amusing that the "original" smiley didn't even
make the list:
  http://en.wikipedia.org/wiki/Emoticon#Creation_of_:-.29_and_:-.28

;-)

paul
=---------------------
 paul fox, pgf at laptop.org


More information about the Sugar-devel mailing list