arcade icon indicating copy to clipboard operation
arcade copied to clipboard

UIInputText() not working

Open BrettskiPy opened this issue 3 years ago • 3 comments

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

BrettskiPy avatar Jan 04 '22 05:01 BrettskiPy

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()
        )

eruvanos avatar Jan 04 '22 22:01 eruvanos

Awesome, thanks for the information. I’ll try this out soon.

BrettskiPy avatar Jan 05 '22 18:01 BrettskiPy

There are still things we need to do here, so re-opening

einarf avatar Jan 05 '22 19:01 einarf

Should be solved now. 2.0.6 will have more fixes as well

einarf avatar Mar 04 '23 01:03 einarf

It still happens in 2.6.17

alejomongua avatar Nov 02 '23 01:11 alejomongua