Skip to content

Tag: python

Delegating single function to client server in python

I have a simple client-server program using the xml-rpc protocol. My code is presented below. But this does not work as I expect it to. Maybe someone knows why? In my module directed_graph there is function algorithm_dijkstra(vertex_name) that I want to execute on the server. Client: Server: Small clarificati…

Problem to install pygame on ubuntu 20.04LTS

I am on Ubuntu 20.04LTS, and I try to install pygame (for python) for a school project. But when I try this: I received an error: Can you help me, please? Answer Try installing it with instead. The error you are getting is because you are missing the Pygame dependencies, which apt should install for you. As a…

QGridlLayout with non-stretchable-height rows

I’m trying to build a QGridLayout with stretchable-width columns but non-stretchable-height rows. The grid in inside a QScrollArea, and with the exception of the height, it’s almost working. You can see it in the following images: As you can see, the rows are being vertically stretched. I would li…