2 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for ddanbe

Sometimes, when I have really, really nothing else to do, I start doodling with some code. Wanted to display the coordinates of the mouse pointer. Thought it was complicated, but it was rather easy. Look, starting at line 94. Then: why not explore a [Bezier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve), and what if I …

0
251
Member Avatar for Gribouillis

This snippet defines a function [icode]mousepos()[/icode] which gets the mouse position on the screen. The package python-xlib is required.

Member Avatar for woooee
1
6K

The End.