Skip to content

LabelEntry doesn't completly removes with the .removesEntry method and can cause duplicate error #643

@MatMatty

Description

@MatMatty

Bug Report


Context


Managing LabelEntry widget (removing) then adding another LabelEntry widget with the same name as the one deleted

Expected Behaviour


Nothing special

Actual Behaviour


Duplicate Error

Any error messages produced by appJar


Duplicate widget

Sample code, demonstrating the issue


app = gui()
app.addLabelEntry("test")
app.removeEntry("test")
app.addLabelEntry("test")
app.go()

Remark


I've been able to make it work anyway by deleting "manually" the widget in the WidgetManager's dictionary with 'app.widgetManager.remove(2, "test")'
(2 being the Entry widget's ID)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions