MCPcopy Create free account
hub / github.com/blender/blender / text

Method text

tests/python/ui_simulate/modules/easy_keys.py:252–262  ·  view source on GitHub ↗

Type in entire phrases.

(self, text)

Source from the content-addressed store, hash-verified

250 )
251
252 def text(self, text):
253 """ Type in entire phrases. """
254 for ch in text:
255 ty, shift = event_types_text_from_char[ch]
256 ty = ty.lower()
257 if shift:
258 eb = getattr(_EventBuilder(self, 'left_shift'), ty)
259 else:
260 eb = _EventBuilder(self, ty)
261 eb.tap()
262 return self
263
264 def text_unicode(self, text):
265 # Since the only purpose of this key-press is to enter text

Callers 15

draw_buttonFunction · 0.80
action_moveFunction · 0.80
text_editor_simpleFunction · 0.80
view3d_simpleFunction · 0.80
view3d_multi_mode_selectFunction · 0.80

Calls 3

_EventBuilderClass · 0.85
tapMethod · 0.80
lowerMethod · 0.45

Tested by 15

action_moveFunction · 0.64
text_editor_simpleFunction · 0.64
view3d_simpleFunction · 0.64
view3d_multi_mode_selectFunction · 0.64