diff src/parpg/font.py @ 182:59c9ce2b8351

PARPG now works with, and needs Fife 0.3.3.
author KarstenBock@gmx.net
date Tue, 11 Oct 2011 14:47:37 +0200
parents d60f1dab8469
children
line wrap: on
line diff
--- a/src/parpg/font.py	Mon Oct 10 15:13:56 2011 +0200
+++ b/src/parpg/font.py	Tue Oct 11 14:47:37 2011 +0200
@@ -1,7 +1,8 @@
 import os
 
+from fife.extensions import pychan
 from fife.extensions.pychan.fonts import Font
-from fife.extensions.pychan.internal import get_manager
+
 
 class PARPGFont(Font):
     """ Font class for PARPG
@@ -35,7 +36,7 @@
             self.size = fontdef['size']
             self.antialias = fontdef['antialias']
             self.color = fontdef.get('color', [255, 255, 255])
-            manager = get_manager().hook.engine.getGuiManager()
+            manager = pychan.manager.hook.guimanager
             self.font = manager.createFont(self.source, self.size, '')
 
             if not self.font: