Posts by Diogo Lindoso • 54 points
4 posts
-
-1
votes1
answer61
viewsA: Tkinter, how to use the same script in win and llinux without the window icon getting in the way
Try using exception treatment by replacing: win.iconbitmap("logo.ico") for: try: win.iconbitmap("logo.ico") except: pass
-
2
votes1
answer97
viewsA: Error in def function
You must change the line: salario = float(40*valor_hora+(h_excd*(1.5*valor_hora))) for: salario = float(40*valorhora+(h_excd*(1.5*valorhora))) You converted the variable valor_hora(string) for float…
-
0
votes2
answers129
viewsA: PYTHON formatting
while True: m = int(input()) mlen = m sm = 1 aux = 1 matriz = [] if m == 0: print() break for i in range(m): linha = [] for j in…
pythonanswered Diogo Lindoso 54 -
2
votes1
answer72
viewsA: switching from one entry to the other when typing a word
You can make your program recognize that you have finished typing the word with a tap on the key Enter. Then the code would look like this: from tkinter import * def muda_barrinha(tecla):…