Skip to content

Commit

Permalink
Provide the correct argument to request_keyboard.
Browse files Browse the repository at this point in the history
resolves kivy#31
  • Loading branch information
Poikilos authored Mar 13, 2022
1 parent e3364b3 commit 5835171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/camera/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def build(self):
self.camera.pos.z = 5
loader = OBJMTLLoader()
obj = loader.load(obj_file, mtl_file)
self._keyboard = Window.request_keyboard(self._keyboard_closed, self)
self._keyboard = Window.request_keyboard(self._keyboard_closed, root)
self._keyboard.bind(on_key_down=self._on_keyboard_down)

scene.add(*obj.children)
Expand Down

0 comments on commit 5835171

Please sign in to comment.