Posts by Sara Lins • 53 points
4 posts
-
1
votes4
answers7124
viewsA: Accept only numerics in input
nota = -1 while nota < 0 or nota > 10: try: nota = int(input("Informe a nota entre 0 e 10: ")) print("A nota foi:", nota) break except: print("Valor inválido") continue The command continue…
-
1
votes1
answer1350
viewsA: Change Sprite image when Unity is clicked
I’ve already got!!! I put the shrubs off the canvas, like Gameobject. So I put the above code associated with Gameobject and not the sprites.
-
0
votes1
answer1350
viewsQ: Change Sprite image when Unity is clicked
I need that when a button is clicked, if the answer is correct the image (a bush) change (to a cow in front of the bush). public class mudaSprite : MonoBehaviour { public InputField dgt; public Text…
-
3
votes1
answer3296
viewsQ: How to make a text fit the size of the Tkinter screen?
I am making an application on Tkinter and I need the text typed on a single label to fit the window size, because otherwise I have to stay using line breaking. Can someone help me? from tkinter…