瀏覽代碼

fix blinking cursor

David Rose 18 年之前
父節點
當前提交
cfb2fa7eed
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      direct/src/gui/DirectEntry.py

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

@@ -109,6 +109,10 @@ class DirectEntry(DirectFrame):
         for i in range(self['numStates']):
             self.guiItem.setTextDef(i, self.onscreenText.textNode)
 
+        # Now we should call setup() again to make sure it has the
+        # right font def.
+        self.setup()
+
         # Update initial text
         self.unicodeText = 0
         if self['initialText']: