Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Text conversion to lowercase is not working
Post: RE: Text conversion to lowercase is not working

Much thanks for your replies. It was my lack Python of coding practice that was the error. I corrected the Autokey script pasted below and is working fine. I must apply Title Case to the text to be ...
ineuw General Coding Help 3 478 Jan-16-2024, 02:42 AM
    Thread: Text conversion to lowercase is not working
Post: Text conversion to lowercase is not working

I am trying to change text which contain these capitalized words surrounded by space. But this Autokey script is not working. Can someone point out what I am doing wrong? text_.replace(" A "," a ") ti...
ineuw General Coding Help 3 478 Jan-13-2024, 10:53 AM
    Thread: Python rule about the space character surrounding the equal sign
Post: RE: Python rule about the space character surround...

Unfortunately, and as usual, I didn't provide context and this led the kind contributors astray. I used a euphemism "in my context", instead of providing more detail. After the last reply, I composed ...
ineuw General Coding Help 10 1,639 Sep-21-2023, 09:17 AM
    Thread: Filename stamp script is needed
Post: RE: Filename stamp script is needed

This issue was resolved but I encountered another problem in my recent post on the same subject
ineuw General Coding Help 11 4,621 Sep-12-2023, 03:05 AM
    Thread: read active document name - other than from the window title
Post: read active document name - other than from the wi...

This simple date time & filename script is activated from Autokey and works well, except where I need it most - in Geany. In a GTK based theme, regardless of the title font size, the filename is s...
ineuw General Coding Help 0 541 Sep-11-2023, 09:06 AM
    Thread: Python rule about the space character surrounding the equal sign
Post: RE: Python rule about the space character surround...

(Jul-12-2023, 07:06 AM)Gribouillis Wrote: You could also reformat the code automatically with Black for example. Then you wouldn't worry again about the correct spacing between operators. You still ...
ineuw General Coding Help 10 1,639 Aug-22-2023, 08:06 PM
    Thread: Python rule about the space character surrounding the equal sign
Post: RE: Python rule about the space character surround...

I agree with you 100%, but I am need a clear answer in writing. I intend to fight entrenched ignorance or coding habits. This may end up in the PSC. (Python Supreme Court).
ineuw General Coding Help 10 1,639 Jul-12-2023, 02:17 AM
    Thread: Python rule about the space character surrounding the equal sign
Post: Python rule about the space character surrounding ...

* In Linux Mint Cinnamon, I am using Autokey 0.96.0 which uses Python 3+. * I was told that in Python, spaces must surround the = sign in variable assignment. * This is different from the bash files I...
ineuw General Coding Help 10 1,639 Jul-12-2023, 02:07 AM
    Thread: What is a circular import? asked by a newbie of newbies
Post: What is a circular import? asked by a newbie of ne...

Using Linux Mint Cinnamon 21.0, I want to parse my bookmarks.html file with a script from https://pypi.org/project/bookmarks-parser/. #! /usr/bin/python3 import pprint import bookmarks_parser book...
ineuw General Coding Help 1 962 Sep-16-2022, 07:19 PM
    Thread: mouse library demands root access
Post: RE: mouse library demands root access

Apologies for the delay in replying. Many thanks for your advice. PyAutoGUI is installed, but haven't used it yet. That's next.
ineuw General Coding Help 2 2,709 Jul-08-2021, 11:41 PM
    Thread: mouse library demands root access
Post: mouse library demands root access

Using either pip3 install mouse and sudo pip3 install mouse generate the following error when importing the library into a script (Autokey). # [win + z] import mouse, time i = 1 while i < 2: ...
ineuw General Coding Help 2 2,709 Jul-07-2021, 03:31 AM
    Thread: Filename stamp script is needed
Post: RE: Filename stamp script is needed

Much thanks to all. I found the solution some days ago and I am attaching the code. ## autokey alt + shift + 1 import gi gi.require_version("Wnck", "3.0") from gi.repository import Wnck scr = Wnck...
ineuw General Coding Help 11 4,621 Apr-24-2021, 05:50 AM
    Thread: Filename stamp script is needed
Post: RE: Filename stamp script is needed

(Apr-07-2021, 05:28 PM)bowlofred Wrote: If you mean the window "title", that is probably queryable. The distinction is that apps may not put the information you expect into the title. You only get...
ineuw General Coding Help 11 4,621 Apr-12-2021, 11:03 PM
    Thread: Filename stamp script is needed
Post: RE: Filename stamp script is needed

(Apr-07-2021, 05:28 PM)bowlofred Wrote: If you mean the window "title", that is probably queryable. The distinction is that apps may not put the information you expect into the title. You only get...
ineuw General Coding Help 11 4,621 Apr-09-2021, 10:37 AM
    Thread: Filename stamp script is needed
Post: RE: Filename stamp script is needed

(Apr-07-2021, 04:33 PM)bowlofred Wrote: Files aren't onscreen, windows are. File data may be used to draw some of the information in that window, but that doesn't mean there's a one-to-one relati...
ineuw General Coding Help 11 4,621 Apr-07-2021, 05:00 PM
    Thread: Filename stamp script is needed
Post: RE: Filename stamp script is needed

(Apr-07-2021, 09:26 AM)Larz60+ Wrote: Perhaps one of: https://pypi.org/search/?q=timestamp Thanks for the link. I searched them but found no code sample that reads the path & name of an active o...
ineuw General Coding Help 11 4,621 Apr-07-2021, 02:50 PM
    Thread: Filename stamp script is needed
Post: Filename stamp script is needed

I don't know which Python library is needed to read the path and file name of a text file open on screen and in focus! The focused file needs to be stamped with the path and file name using Python c...
ineuw General Coding Help 11 4,621 Apr-07-2021, 05:53 AM
    Thread: Python 3+ kybd and mouse control keycodes
Post: RE: Python 3+ kybd and mouse control keycodes

I am using Python 3.6 in Linux Mint 19.2 with Autokey 3 which works well in every app, except it does not have mouse support yet. With the Python keyboard and mouse keycodes I wanted to write a scri...
ineuw General Coding Help 5 2,906 Aug-20-2019, 07:51 AM
    Thread: Python 3+ kybd and mouse control keycodes
Post: Python 3+ kybd and mouse control keycodes

Where can I find a list of Python keyboard and mouse keycodes and some basic code examples?
ineuw General Coding Help 5 2,906 Aug-20-2019, 12:39 AM
    Thread: strip space from end of a row of text
Post: RE: strip space from end of a row of text

(Apr-15-2019, 12:44 AM)ichabod801 Wrote: text = text.replace(old, new) Much thanks ichabod801. It works fine.
ineuw General Coding Help 4 2,903 Apr-15-2019, 03:14 AM

User Panel Messages

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