Parcourir la source

added getFont()

Darren Ranalli il y a 17 ans
Parent
commit
2a0ccbf137
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      direct/src/gui/DirectEntry.py

+ 3 - 0
direct/src/gui/DirectEntry.py

@@ -297,6 +297,9 @@ class DirectEntry(DirectFrame):
         self.set(text)
         self.set(text)
         self.setCursorPosition(self.guiItem.getNumCharacters())
         self.setCursorPosition(self.guiItem.getNumCharacters())
 
 
+    def getFont(self):
+        return self.onscreenText.getFont()
+
     def getBounds(self, state = 0):
     def getBounds(self, state = 0):
         # Compute the width and height for the entry itself, ignoring
         # Compute the width and height for the entry itself, ignoring
         # geometry etc.
         # geometry etc.