The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 3,448β€…    Votes:  2β€…
Tag : python  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

Title: Why does a Python program I write in Windows not work in Linux?
ID: /2020/01/30/Why-does-a-Python-program-I-write-in-Windows-not-work-in-Linux_
Created: January 30, 2020
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

As mentioned in other answer try running in Python interpreter before compiling.

It is likely some code will have to be changed. For example if your original program contains:


It would have to be change to:


If it’s low level python and does such things as moving mouse on screen, closing popup browser windows and adjusting screen brightness and color temperature many changes will be needed with added calls to xdotool, xrandr and possibly wmctrl.

⇧ Why are so many Linux kernels still being updated? Laptop selectively will/will not wake up from suspend on Ubuntu 18.04.3  β‡©