Posts by Heitor Tasso • 22 points
4 posts
-
-2
votes1
answer55
viewsA: Error closing a tab in Pysimplegui
Try this: (Obs. it is not recommended to use Sleep in a graphical interface, it makes the code wait a little impossible for the interface to be updated and may crash) from PySimpleGUI import…
-
-1
votes1
answer43
viewsQ: Set a runtime variable from a string and a python object
I want to add a variable to my code or in memory at runtime, I’m looking for something like this since yesterday and can’t get the desired result. Let’s say I have an object: (<bound method…
-
0
votes2
answers53
viewsA: How to keep the window open in Python Kivy?
Try this: from kivy.app import App from kivy.uix.label import Label class Texto(Label): def __init__(self, **kwargs): super(Texto,self).__init__(**kwargs) self.text = 'Label' class NameApp(App): def…
-
0
votes6
answers42162
viewsA: Removing duplicate elements in a python list
had problems using lista.sort() or sorted(lista), (if it’s a txt list, you put a " n" every time you hit "enter", then I did it another way) Code: def tira_nome(lista): listaP = [] num = 0 for lis…