arcade
arcade copied to clipboard
UIInputText() not working
Bug Report
The UIInputText() is not visible even after it is created.
Expected behavior:
Entry box appears upon using the arcade.gui.UIInputText()
Steps to reproduce/example code:
Observe simplified code attached. entry_box_not_working.txt
The issue is caused by the underlying pyglet lib: https://github.com/pyglet/pyglet/issues/529
Please try this workaround:
entry_area = arcade.gui.UIInputText(text=" ")
entry_area.text = ""
This should do the trick.
PS. I also recommend to add some border to make the input field more visible (even in the example code):
self.manager.add(
arcade.gui.UIAnchorWidget(
anchor_x="center_x",
anchor_y="center_y",
child=self.v_box).with_border()
)
Awesome, thanks for the information. I’ll try this out soon.
There are still things we need to do here, so re-opening
Should be solved now. 2.0.6 will have more fixes as well
It still happens in 2.6.17