Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Mult-threading and locking file
Post: RE: Mult-threading and locking file

I'm not an expert on threading, have used mutiprocessing see: https://docs.python.org/3/library/multiprocessing.html. Multiprocessing is similar to threading, except it side steps the GIL which can be...
Larz60+ General Coding Help 4 126 Yesterday, 01:54 AM
    Thread: Mult-threading and locking file
Post: RE: Mult-threading and locking file

I wrote a tutorial on automatically creating a database from csv files. Note: Project uses sqlite database. Other DBMS can be used with a simple change to the model. The project demonstrates dynamic ...
Larz60+ General Coding Help 4 126 Oct-15-2021, 06:06 PM
    Thread: PyQt5 Music Player
Post: RE: PyQt5 Music Player

There's a bunch of qt5 audio examples here: https://doc.qt.io/qt-5/audiooverview.html perhaps there's something useful for your app.
Larz60+ Code sharing 6 132 Oct-14-2021, 08:49 PM
    Thread: Change font in a list or tuple
Post: RE: Change font in a list or tuple

In what context? fonts are usually application specific. 10 * 10 = 4
Larz60+ General Coding Help 3 118 Oct-14-2021, 01:59 AM
    Thread: Get last row of SQL database and update
Post: RE: Get last row of SQL database and update

Try this query: last_meeting = db.execute("SELECT * FROM meetingData ORDER BY meeting_id DESC LIMIT 1;")
Larz60+ General Coding Help 5 157 Oct-14-2021, 01:55 AM
    Thread: Meson - to use or not to use
Post: RE: Meson - to use or not to use

pyenv is in my opinion the easest way to install python versions each version is installed in it's own path, so you can switch from one version to another with a simple statement. Read this: pyenv ...
Larz60+ General Coding Help 1 112 Oct-14-2021, 01:51 AM
    Thread: visualizing huge correation matrix
Post: RE: visualizing huge correation matrix

There are quite a few blogs on this, Google: plot numpy.corrcoef (Pearson's coefficients) correlation matrix python for list
Larz60+ Data Science 3 117 Oct-12-2021, 04:22 PM
    Thread: Scrollbar
Post: RE: Scrollbar

modified your code so that it will run, and it shows the listbox in the frame, three high with the eight entries unalligned, and not filling root. from tkinter import * root = Tk() canvas = Canvas...
Larz60+ GUI 7 225 Oct-11-2021, 12:11 AM
    Thread: ImportError: cannot import name 'Pyfhel' from 'Pyfhel'
Post: RE: ImportError: cannot import name 'Pyfhel' from ...

To use the method that you are showing, and after the clone, the pip command has to be pip install . you need the ' .' after 'pip install' the method I show is to go to the command line, and then typ...
Larz60+ General Coding Help 8 274 Oct-10-2021, 07:25 PM
    Thread: PySide2 and QMediaPlayer
Post: RE: PySide2 and QMediaPlayer

doc page for pyside6: https://doc.qt.io/qtforpython/ Show your OS for Axel_Erfurt, he may have an example for you.
Larz60+ GUI 19 264 Oct-10-2021, 12:39 PM
    Thread: PySide2 and QMediaPlayer
Post: RE: PySide2 and QMediaPlayer

I think, not sure of this, pyside2 was written for python 2.7. There is a pyside6 version available pip install PySide6 see: https://pypi.org/project/PySide6/
Larz60+ GUI 19 264 Oct-10-2021, 08:12 AM
    Thread: Scrollbar
Post: RE: Scrollbar

There was a set of demo programs written in 2005 (I have the original code, which I partially modified, for python 3.6). This included a program cscroll.py (and support module template.py) There's a ...
Larz60+ GUI 7 225 Oct-10-2021, 08:04 AM
    Thread: ImportError: cannot import name 'Pyfhel' from 'Pyfhel'
Post: RE: ImportError: cannot import name 'Pyfhel' from ...

install instructions from PyPi (on command line, not 'git command line'), page: pip install Pyfhel
Larz60+ General Coding Help 8 274 Oct-09-2021, 03:35 PM
    Thread: Compare two Excel sheets with Python and list diffenrences
Post: RE: Compare two Excel sheets with Python and list ...

you can use pandas, see: https://stackoverflow.com/a/37113788 The code provided on post above: import pandas as pd df1 = pd.read_excel('excel1.xlsx') df2 = pd.read_excel('excel2.xlsx') difference =...
Larz60+ General Coding Help 1 133 Oct-09-2021, 03:30 PM
    Thread: How To Create A "Birthday Calculator" in Python?
Post: RE: How To Create A "Birthday Calculator" in Pytho...

The following page explains, using examples, most of the datetime methods: https://pymotw.com/3/datetime/ here are some helpers: import datetime # to get today's date today = datetime.date.today() ...
Larz60+ General Coding Help 3 214 Oct-08-2021, 04:30 PM
    Thread: How to find I2C library in Python
Post: RE: How to find I2C library in Python

You don't state who's MCP2221 board you are using, however: AdaFruit sells a board with the Microchip MCP2221a product here: https://www.adafruit.com/product/4471 Installation of the driver is OS de...
Larz60+ General Coding Help 1 150 Oct-08-2021, 04:06 PM
    Thread: What are syntaxes?
Post: RE: What are syntaxes?

syntax is the set of rules (grammar) used to analyze the syntax of a language. It's not a single entity.
Larz60+ Homework 4 170 Oct-08-2021, 11:26 AM
    Thread: How psycopg2 autocommit works ?
Post: RE: How psycopg2 autocommit works ?

Hmm, then I wonder if it's because of explicit locking which PostgreSQL allows, doc: https://www.postgresql.org/docs/9.1/expl...cking.html Perhaps ask the authors, whose email address can be found he...
Larz60+ General Coding Help 3 173 Oct-08-2021, 11:22 AM
    Thread: TIOBE Index for October 2021 - Python programming language number 1!
Post: RE: TIOBE Index for October 2021 - Python programm...

I have used Perl a lot in the past, and actually was quite fond of it. The problem was after I stopped using it on a regular basis, I didn't have a clue what my scripts did, except in rare cases where...
Larz60+ News and Discussions 1 151 Oct-07-2021, 11:35 PM
    Thread: How psycopg2 autocommit works ?
Post: RE: How psycopg2 autocommit works ?

selects only require commit in very rare cases, like joining database links, where a transaction will be created. Almost never need a transaction on select, and I would expect that auto-commit will no...
Larz60+ General Coding Help 3 173 Oct-07-2021, 11:32 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020