Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Volume label
Post: RE: Volume label

Ok, close, but I get an error: Output:AttributeError: module 'os' has no attribute 'statvfs'Even in Python 3.12 it does not. I see os.statvfs_result(), but that takes many more arguments. In python 3....
DPaul Bar 3 232 Apr-24-2024, 03:16 PM
    Thread: Volume label
Post: RE: Volume label

The answer is hidden in python 3.12. New os.listdrives() function works fine. But where are the drive labels ? I can find c:\, d:\, e:\ etc. , but fail to associate them with the volume labels. Paul
DPaul Bar 3 232 Apr-23-2024, 02:23 PM
    Thread: Volume label
Post: Volume label

Hi, I would like to do the following: When I start my search program for prayer cards, the system looks immediately for availability of the data on the server. That works fine. If the server is not a...
DPaul Bar 3 232 Apr-22-2024, 03:10 PM
    Thread: Converting py to exe
Post: RE: Converting py to exe

Even non-guru's would like to know what command line you are using: something like pyinstaller --clean -- windowed ...etc Paul
DPaul General Coding Help 8 689 Apr-19-2024, 08:50 AM
    Thread: Address Extraction
Post: RE: Address Extraction

From what you have shown, the word PROVIDER is followed by 3-4 (5 ?) lines. The lines you need. If you can rely on that layout, wherever it is, and if you have the coordinates of "PROVIDER", you can f...
DPaul Data Science 7 509 Apr-10-2024, 05:22 PM
    Thread: Address Extraction
Post: RE: Address Extraction

(Apr-08-2024, 04:45 PM)Pedroski55 Wrote: I presuppose that the Provider part is always roughly where it is in your example PDFHi, If you use an OCR module, you can OCR the text, look for PROVIDER in...
DPaul Data Science 7 509 Apr-08-2024, 05:32 PM
    Thread: Address Extraction
Post: RE: Address Extraction

I think you need to consider other ocr options. It is possible to get the x-y coordinates of the word PROVIDER. But then i would transform the pdf into an image and use tesseract for the OCR. I rememb...
DPaul Data Science 7 509 Apr-07-2024, 05:20 PM
    Thread: Address Extraction
Post: RE: Address Extraction

If "PROVIDER" is not always in the exact same place, bbox won't help. What module are you using to OCR the pdf with ? What does the code look like? Paul
DPaul Data Science 7 509 Apr-07-2024, 09:36 AM
    Thread: OCR question
Post: OCR question

OCR with tesseract does a very good job, we know that. I use it to process various types of documents, some of them are just lists of people. About a 100 years ago, people started to use typewriters, ...
DPaul Bar 0 246 Mar-29-2024, 08:03 AM
    Thread: Not getting forum emails
Post: RE: Not getting forum emails

I would second that. Sometimes you get the email, sometimes you don't. Paul
DPaul Board 2 262 Mar-27-2024, 06:33 PM
    Thread: tkinter logo
Post: RE: tkinter logo

Almost ! What about this French book ? http://pascal.ortiz.free.fr/contents/tki...kinter.pdf Paul
DPaul Bar 3 331 Mar-27-2024, 10:48 AM
    Thread: automatic document renaming
Post: RE: automatic document renaming

Hi, If your timesheet has a grid with explicit lines, it might be an idea to look at pdfPlumber. I find that it handles pdfs with that particular feature very well. set1 = { "vertical_...
DPaul General Coding Help 2 367 Mar-19-2024, 10:31 AM
    Thread: Screenshot problem
Post: RE: Screenshot problem

(Mar-11-2024, 08:32 PM)DeaD_EyE Wrote: have only one screen, then you don't care.Thanks, good show, ... and no I don't care. **smile** Paul Edit: I read that pyscreenshot should be considered obs...
DPaul Bar 7 671 Mar-12-2024, 06:59 AM
    Thread: Screenshot problem
Post: RE: Screenshot problem

(Mar-06-2024, 01:32 PM)DeaD_EyE Wrote: Have you tried ImageGrab? It should work now on all Operating SystemTried it today, yes it works. My current method allows a box to be defined, so I grab only ...
DPaul Bar 7 671 Mar-11-2024, 04:19 PM
    Thread: Screenshot problem
Post: RE: Screenshot problem

(Mar-06-2024, 01:32 PM)DeaD_EyE Wrote: Have you tried ImageGrab? It should workNo, I did not (with PIL). I will try asap. thx, Paul
DPaul Bar 7 671 Mar-06-2024, 06:16 PM
    Thread: Screenshot problem
Post: RE: Screenshot problem

(Mar-05-2024, 08:11 AM)Gribouillis Wrote: Why not use the canvas postscript methodYes, that is what I did before I turned to screenshots. It also works, but, I found that this method caused a signif...
DPaul Bar 7 671 Mar-06-2024, 10:37 AM
    Thread: Screenshot problem
Post: Screenshot problem

Hi, When a user wants to save a document , that is shown in the tKinter canvas area of the gui, he hits a button, and a screenshot is taken to the clipboard , and saved. (Using the box(...) method to ...
DPaul Bar 7 671 Mar-05-2024, 07:34 AM
    Thread: Rock Paper Scissors Project in Python
Post: RE: Rock Paper Scissors Project in Python

Rock , paper scissors is much more fun using micro:bits **smile** Each player needs a mBit or use them in turn! from microbit import * import random paper = Image('99999:90009:90009:90009:99999') r...
DPaul General Coding Help 8 4,880 Feb-23-2024, 03:14 PM
    Thread: string to float conversion fails
Post: RE: string to float conversion fails

(Feb-22-2024, 11:09 AM)PetarPetrenko Wrote: If you press "enter" without any number, you will get an error.That is what deanHystad has explained, and he proposed a solution. P.
DPaul Homework 10 1,108 Feb-22-2024, 04:01 PM
    Thread: string to float conversion fails
Post: RE: string to float conversion fails

(Feb-21-2024, 06:34 PM)deanhystad Wrote: I would catch the exception.No doubt! P.
DPaul Homework 10 1,108 Feb-22-2024, 09:41 AM

User Panel Messages

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