MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / on_draw

Method on_draw

brainworkshop.py:1872–1881  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1870
1871
1872 def on_draw(self):
1873 # the bugfix hack, which currently does not work
1874 if self.catch and self.document.text == self.catch + self.starttext:
1875 self.document.text = self.starttext
1876 self.catch = ''
1877 self.caret.select_paragraph(600,0)
1878
1879 window.clear()
1880 self.batch.draw()
1881 return pyglet.event.EVENT_HANDLED
1882
1883
1884 def on_key_press(self, k, mod):

Callers

nothing calls this directly

Calls 2

clearMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected