Posts by nunvie • 41 points
6 posts
-
0
votes1
answer42
viewsA: Draw things in pygame
Hello, with get_rect() you receive the object coordinates on the screen. by exe: # Aqui recebes o tamanho da imagem tamanho = self.image.get_size() print(tamanho) You will receive (length, height)…
-
-5
votes2
answers45
viewsA: Value Replace with Python and Pandas
Use it like this: text = pd.read_csv('dados.txt', header=None) text = text.replace('\[', '', regex=True)
-
0
votes1
answer76
viewsA: as per image to resize in Fullscreen Pyqt5
Hello, you have to put another layout that is above the central_widget, and it is in this layout that you put the components. First place the background image in the central_widget: import sys from…
-
0
votes1
answer84
viewsA: Creating a Register Program with Pandas and Python
Hi, if you append the date like you did with the other data, it will work as you expected: descritivo = [] valor = [] condicao = [] data = [] and then: descritivo.append(des) valor.append(val)…
-
1
votes1
answer38
viewsA: Function writing values more than once - Pyqt5
Hey, I couldn’t run your code, but here’s an example that does what you need: import sys import os from PyQt5.QtWidgets import * class TelaPrincipal(QMainWindow): def __init__(self, *args,…
-
1
votes1
answer53
viewsA: How to change formularies in different modules
Hello, I use a controller to call functions and variables from the main screen, maybe this will help you: import sys from PyQt5.QtWidgets import * class TelaPrincipal(QMainWindow): def…