Hello, this is my first post here. I'm playing around with Gtk+ and Xlib. I'm trying to get the X window ID of the active window, and then display that ID in a Gtk label. However, when I run it, it seg faults. I've narrowed it down to `XGetInputFocus`, but I'm stuck, because it seems like I'm supplying it with the parameter types it needs. All three parameters are `*Display`, `*Window` and `*int`, which is what I'm supplying it, according to https://tronche.com/gui/x/xlib/input/XGetInputFocus.html 1. What am I doing wrong? 2. Also, when I compile with `gcc -Wall `pkg-config --cflags gtk+-3.0` -o …
|+0 forum 1|
Code Snippet Get the mouse position on the screen on Linux.
This snippet defines a function [icode]mousepos()[/icode] which gets the mouse position on the screen. The package python-xlib is required.
|+1 forum 7|
im trying to replicate the screen contens in my application .. i need a certain area of the screen to be drawn in my app...although this code works fine, its very very slow...takes more than 20 seconds with inferior quality and around 30-40 with best quality... is there a quicker way of doing the same...i want it to b e done within .5 seconds max ... i tried to do the same by taking a screenshot...but even that takes atleast 5 seconds skipping every alternate pixel...[code] class Window: def __init__(self, display, msg): self.display = display self.msg = msg self.screen = …
|+0 forum 1|
Hi, i would like to put some icons over desktop and these launch apps. It's necessary to use xlib with python, and i'm lost. thanks in advanced
|+0 forum 2|
Hello, Can anyone suggest a GUI library that meets the following criteria? * Cross-Platform * Doesn't control the main loop * Not 100% object-oriented; similar to Xlib :) * Not many pointers please (like FLTK that every object is a pointer) * Free to use for closed source and open source software * Lightweight Thanks!
|+0 forum 12|