-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think i made something wrong #632
Labels
Comments
There's not enough code there for me to be able to test it and reproduce the error. However, that error generally occurs when you try to make two GUIs in one program, in other words, having more than one one like this:
It may be that you're not doing it on purpose, but that the previous version of code that you ran hasn't finished running - what tool are you using to write & run your code? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Context
So, i was learning about appJar. And do some examples from the documentation and on my own. But the last time i tried it raised an error that says "You can only have one gui".
And im not even running the code. I stop trying it and some weeks later i try it again and works normaly.
But i reach that thing again and it says "Only one gui at the time... try subwindows" or something..
Expected Behaviour
I just close the frame with the default X... but i think that makes a bug and it keeps going in the background
Actual Behaviour
It just keeps saying "try subwindows" and "only one gui at the time"
Any error messages produced by appJar
First time running my program:
raise Exception("Invalid function: " + str(funcName))
Exception: Invalid function: [<function chus at 0x0000017FED9DB828>]
Second time:
raise Exception("You cannot have more than one instance of gui, try using a subWindow.")
Exception: You cannot have more than one instance of gui, try using a subWindow.
Sample code, demonstrating the issue
app = gui("Game")
app.addLabel("knight", "Knight")
app.setLabelOverFunction("knight", [enter, leave])
app.setLabelSubmitFunction("knight", [chus])
app.addLabel("wizzard", "Wizzard")
app.setLabelOverFunction("wizzard", [enter, leave])
app.setLabelSubmitFunction("wizzard", [chus])
app.startLabelFrame("Character", 0, 16)
app.addImage("character", jsjs+str(".gif"))
app.go()
What steps are needed to reproduce the bug
Run it twice
Version Information
Replace this with the result of running your code with the -v flag:
python myCode.py -v
The text was updated successfully, but these errors were encountered: