Tag: Python
-
Setting up a python virtual environment in Linux bash terminal.
My development platform Python venv setup in my platform February 8th, 2025 – Updated to python 3.13 I will be explaining the venv setup as off python 3.4. Tested and verified with the newest python 3.13. Let’s jump right into it. Open a terminal window. To get the latest python builds I use the ‘deadsnakes’…
-
Parsing xml file in python
Today I’m going to show you how you can relatively easy parse and extract data from xml files, using the standard xml module. The xml document we’ll be parsing has the following structure. Start by importing the xml.etree.ElementTree function.Then define a function to parse a xml file. The expected output would be something along these…
-
Desktop application using pyqt6
To start with, it’s recommended to do this in a virtual environment. For information on how to set this up on linux mint 21.2, see this post Going forward I assume running python 3.11 in a venv. So in the virtual enviroment, install the pyqt6 module. (p3.11)someone@somewhere:~/venv/p3.11$ python -m pip install pyqt6 Now we create…