From 2a0ccbf1378f473ebcc16833271855627a642fed Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 26 Nov 2008 23:01:27 +0000 Subject: [PATCH] added getFont() --- direct/src/gui/DirectEntry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/gui/DirectEntry.py b/direct/src/gui/DirectEntry.py index ede1f4840f..4dc9723526 100644 --- a/direct/src/gui/DirectEntry.py +++ b/direct/src/gui/DirectEntry.py @@ -297,6 +297,9 @@ class DirectEntry(DirectFrame): self.set(text) self.setCursorPosition(self.guiItem.getNumCharacters()) + def getFont(self): + return self.onscreenText.getFont() + def getBounds(self, state = 0): # Compute the width and height for the entry itself, ignoring # geometry etc.