Python: Modified Text, Font and RenderWindow to build with latest revision of SFML2. Adjusted samples.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1403 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
tankbo 2010-02-11 15:32:08 +00:00
parent 239071c0fa
commit 0a7d28b687
5 changed files with 74 additions and 145 deletions

View file

@ -20,7 +20,7 @@ wnd.UseVerticalSync( True )
# Load a fancy font.
cheese = sf.Font()
cheese.LoadFromFile( "data/cheeseburger.ttf", 50 )
cheese.LoadFromFile( "data/cheeseburger.ttf" )
# Create a text.
text = sf.Text( u"Hello SFML from Python!", cheese, 50 )

View file

@ -73,7 +73,6 @@ def main():
# Draw background
App.Draw(Background)
App.Flush()
# Active window to be able to perform OpenGL commands.
App.SetActive()