How to map “mouse wheel up / down” to a button of a Wacom graphics tablet with xsetwacom?

I use a “Wacom Intuos” graphics tablet with 4 programmable buttons under Ubuntu 18.04. Said computer has 2 screens. I like to assign two buttons of the graphics tablet to the actions “mouse wheel up” and “mouse wheel down”. My Goal is to enable zooming without a mouse. I have therefore determined … … the…

Details

How do i save this python code to text file.?

# Dependencies import json import requests # Specify the URL url = “https://official-joke-api.appspot.com/jokes/programming/ten” # Make request and store response r = requests.get(url) print(“Status code:”, r.status_code) response_dict = r.json() keys = {“setup”, “punchline”} for item in response_dict: for key, value in item.items(): if key in keys: print(key, ” : “, value)

Details