Category : windows-10

I want to match a Windows dir name. Basically the escape chars nt… plus the 9 characters /:*?"<>| are disallowed. My regex is: windows_dir_name = r"[^nrtb{$content}/:*?"<>|]+" Now I want to support rejecting dir names that start with runs of whitespace and those that end with either whitespace and/or dots. You can try this by creating ..

Read more

I’m working around with Python to make a simple UI automation script/macro that clicks on certain points on the screen. The script for clicking is already working, however the code is executed by manually pressing a button and I wish to change that, so that the execution of my script begins by it listening to ..

Read more

Having problems installing Kivy on windows 10. Installed everything with instruction from https://kivy.org/doc/stable/installation/installation-windows.html and everyhing have been installed except the kivy itself. I’m using Python 3.9.0. Also couldn’t insall properly PyQT, but solved somehow Error message: C:WINDOWSsystem32>python -m pip install kivy==1.11.1 Collecting kivy==1.11.1 Using cached Kivy-1.11.1.tar.gz (23.6 MB) Requirement already satisfied: Kivy-Garden>=0.1.4 in c:usersmegaaappdataroamingpythonpython38site-packages (from ..

Read more

I install pdfkit using pip (pip install pdfkit). Then i install wkhtmltopdf from here But when i try to run the following code: import pdfkit config = pdfkit.configuration(wkhtmltopdf=’C:Program Fileswkhtmltopdfbinwkhtmltopdf.exe’) pdfkit.from_url(‘https://www.google.com’, ‘C:UsersΧρήστοςDesktopout-test.pdf’, configuration=config) An error oqqurs: Traceback (most recent call last): File "create_pdf.py", line 4, in <module> pdfkit.from_url(‘https://www.google.com’, ‘C:UsersΧρήστοςDesktopout-test.pdf’, configuration=config) File "C:UsersΧρήστοςAppDataLocalProgramsPythonPython38libsite-packagespdfkitapi.py", line 26, in from_url ..

Read more