Пример #1
0
    def __init__(self, w, h, fullscreen, title="Unseen"):
        Renderer3DBase.__init__(self, w, h, fullscreen)
        PyUnseen.initialize(w, h, gotEvent, messageMap, title )
        self.font1 = PyUnseen.createFont( "Arial", 9, 0 )
        self.fixedFont = PyUnseen.createFont( "Courier", 7, 0 )        
        self.populateConstants()

        # store the actual height and width surface created (might be less than requested)
        #(getDesktop().width, getDesktop().height) = PyUnseen.getDesktopSize()
        
        (w, pyui.locals.TEXT_HEIGHT) = self.getTextSize(" ")
        self.images = {}

        self.cache = {} # tracks all objects by Handle. useful for debugging
Пример #2
0
    def __init__(self, w, h, fullscreen, title="Unseen"):
        Renderer3DBase.__init__(self, w, h, fullscreen)
        PyUnseen.initialize(w, h, gotEvent, messageMap, title)
        self.font1 = PyUnseen.createFont("Arial", 9, 0)
        self.fixedFont = PyUnseen.createFont("Courier", 7, 0)
        self.populateConstants()

        # store the actual height and width surface created (might be less than requested)
        #(getDesktop().width, getDesktop().height) = PyUnseen.getDesktopSize()

        (w, pyui.locals.TEXT_HEIGHT) = self.getTextSize(" ")
        self.images = {}

        self.cache = {}  # tracks all objects by Handle. useful for debugging
Пример #3
0
 def createFont(self, fontName, size, flag):
     handle = PyUnseen.createFont(fontName, size, flag)
     self.cache[handle] = "font %s %s" % ( fontName, size)
     return handle
Пример #4
0
 def createFont(self, fontName, size, flag):
     handle = PyUnseen.createFont(fontName, size, flag)
     self.cache[handle] = "font %s %s" % (fontName, size)
     return handle