You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to reopen a subWindow from a button, after closing it once, an error is thrown.
Context
Replace this with a bit of background on what you're doing. I am trying to create an app that opens subWindows for different purposes. When the user is done, he closes the subWindow, and can reopen it to restart.
Expected Behaviour
After closing the subWindow once, the user should be able to reopen it again.
Actual Behaviour
After closing it once, an error is thrown and the subWindow does not reopen when I click the button.
Any error messages produced by appJar
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/__init__.py", line 1705, in __call__
return self.func(*args)
File "/home/dragonbug/.local/lib/python3.6/site-packages/appJar/appjar.py", line 3783, in <lambda>
return lambda *args: funcName(param)
File "/home/dragonbug/REPOS/japanesQuizzGenerator/src/GUI.py", line 53, in click
createKanjiBank()
File "/home/dragonbug/REPOS/japanesQuizzGenerator/src/GUI.py", line 29, in createKanjiBank
app.startSubWindow("kanji", modal=True)
File "/home/dragonbug/.local/lib/python3.6/site-packages/appJar/appjar.py", line 5680, in startSubWindow
self.widgetManager.verify(WIDGET_NAMES.SubWindow, name)
File "/home/dragonbug/.local/lib/python3.6/site-packages/appJar/appjar.py", line 15862, in verify
raise ItemLookupError("Duplicate widgetName: " + widgetName)
appJar.appjar.ItemLookupError: Duplicate widgetName: kanji
Sample code, demonstrating the issue
def createKanjiBank():
print("create Kanji Bank")
kanjiBank = []
app.startSubWindow("kanji", modal=True)
# app.setStopFunction(closeSubWindow)
app.setSize(600,400)
app.showSubWindow("kanji", "")
# addToolBarButtons()
app.addButton("+", addNewKanji)
app.startScrollPane("Kanji Bank")
for kanji in kanjiBank:
app.addLabel(kanji.getKanji(), kanji.toString())
def click(button):
if button == "Create new Kanji bank":
createKanjiBank()
app = gui("Japanese Quizz Generator", "500x350")
app.addButton("Create new Kanji bank", click)
app.go()
Bug Report
When I try to reopen a subWindow from a button, after closing it once, an error is thrown.
Context
Replace this with a bit of background on what you're doing. I am trying to create an app that opens subWindows for different purposes. When the user is done, he closes the subWindow, and can reopen it to restart.
Expected Behaviour
After closing the subWindow once, the user should be able to reopen it again.
Actual Behaviour
After closing it once, an error is thrown and the subWindow does not reopen when I click the button.
Any error messages produced by appJar
Sample code, demonstrating the issue
What steps are needed to reproduce the bug
Version Information
The text was updated successfully, but these errors were encountered: