Get WNCK working with Python 3.5?

I have a project right now and I'm using WNCK to find the location of open windows, as well as focus them. I recently added features that require Python 3.5, but WNCK is only working with Python...

python-wnck set focus to window

I'm trying to set focus to a window using python-wnck. <br> The only docs I could find related to this library are from https://developer.gnome.org/libwnck/stable/WnckWindow.html Using some code I...

python wnck not returning any data until after a pdb.set_trace()

On Ubuntu Linux / Gnome, I am trying to use python's wnck binding to get a list of all the open windows. My code looks like this: #! /usr/bin/python from pprint import pprint import wnck screen...

wnck alternatives in Ubuntu 18.04 using Python

As Wnck support is removed for Ubuntu 18.04. So what is the alternative to Wnck get_windows() I'm working in PyBullet and I want to getting output of 3D object using pygetwindows and pyautogui in...

Why python Wnck window.activate(int(time.time()))

This to me is VERY strange. Could someone please explain why the activate() function should want a timestamp? Wouldn't 99.9% of the time be NOW or ASAP or "At your earliest convenience"? And...

window position a little off just after spawning and moving using python-wnck

I made this Python script: from gi.repository import Gtk, Gdk, GdkX11, Wnck from subprocess import PIPE, Popen class WindowError(Exception): pass def undecorate(aWindow): gdkdis =...

python-wnck how to get monitor properties

python-wnck has Screen object which combines the areas of multiple monitors and gives it in get_screen_size(). How to get the size of individual monitors. I am trying to move a window from one...

Python & WNCK: Get data from a window

I have a program executing through wine in Ubuntu 13, this program has its own GUI and there is some data on this program like in this picture: My intention is (using Python) get this window, and...

Determining active window / application with wnck (python) fails

in my python-script i have to determine the actual active window / application to react on remote-events (lirc) application dependent. So i tried to relaize it like described here. But the...

How can i move a gtk window from a workspace to another using wnck in python?

i'm trying to develop a python application that allow to move windows between gnome workspace. I' m using wnck to interact with windows, but i'd like to know how can i move a window from a...

Detect when a window opens in wnck python

I am making a window tiling script using libwnck. I would like to detect when the user opens a new window in order to resize it. Here is the gist of my code so far: ```python import...

How can I get a window's icon name in Xorg?

I am attempting to get a window's icon name with python, for use in a pyclutter-based taskbar. I have gotten the XID via wnck, but wnck seems to only be capable of giving me a gtk.gdk.Pixbuf,...

How can I count number of Window with specific title on Linux by Python?

Here is my solution, but I think it's not a good one. Can anybody suggest me new solution, I want to enumarize windows, and get the Title property to compare by just using core library of python ,...

Howto to show program window in specific desktop using python

I am writing python app and need to run another program in specific (not the current one) desktop in openbox (I have 4 desktops). There is freedesktop _NET_CURRENT_DESKTOP param, but I don't know...

Discover what window is active on Gnome/Linux/Ubuntu from Python?

Is there any way to get a list of all windows that are open at present and see what window is at the top (i.e. active?) from Python? This is using Gnome on Ubuntu Linux. wnck looks like it might...

Python: how to switch between workspaces using Xlib?

How do I switch between my window manager's workspaces using Python with Xlib module? This is my most promising attempt: #!/usr/bin/python from Xlib import X, display, error, Xatom, Xutil import...

How to load a GTK program in Pymacs

Hello I am trying to write a Python program to save Emacs' files on the loss of window focus. For that I wrote a Python programm that creates a full gtk application and uses the wnck module: from...

Set WM_CLASS (with wnck, xprop, or something else)

I'm trying to group multiple Chrome standalone windows under the same launcher in Ubuntu 14.04. It doesn't seem to be possible simply to specify multiple WM_CLASS variables in the .desktop file...

Get menu screenshot of the active window on Unity using python

I want to take a menu screenshot of the active window on Unity (Ubuntu environment). Preferably using Python. Right now I got the code which makes a screenshot of the active window using wnck and...

How to move application window to current workspace?

My application has "Bring to current desktop" option in indicator menu. Now, moving windows across workspaces is nice and easy if you are not using Compiz. My question is how could I bring...

Detecting active windows in python with KDE

I'm writing a small python script that tracks how I'm dividing my time between programs. It needs to detect the currently active window (ideally, the application controlling that window, but I can...

pygtk window with box that ignores all X(mouse)events (passes them through)

I'd like to do the following: Create a fullscreen, always on top pygtk window with a webkit widget displaying some html, but with a box that is completely transparent, so that the windows below...

Unable to locate package python-gnomedesktop: Installing PyViz in ns3

I am following the commands here to install PyViz. I get the error: ~$ sudo apt-get install python-gnome2-desktop Reading package lists... Done Building dependency tree Reading state...

How to fix the error: Cannot load shared library , symbol undefined

I have a python script that is converted to a 'one file executable' using pyinstaller. The executable runs in my computer without any problem. When it runs in another computer one of the threads...

Pytest segmentation fault and test fail

I am trying to run pytest tests on my PyCharm project. The test code is the following: def test_window_created(self, create_xld_main_window): &quot;&quot;&quot;This test tests, whether or not...

Why is my wnck.screen_get_default() call hanging or crashing when launched through upstart?

When I run the following script manually, everything works fine. However, when I launch it on-boot through Upstart via a shell script (which launches the script as root) it successfully gets to...

pyGTK detect all window move events

I'm trying to capture the configure-event for every window to create a windows 7-esque snap feature. I know there are solutions involving compiz-fusion, but my installation is running within...

How to make tray icon display in Ubuntu Budgie in Snapcraft PyQt5 app?

I've developed a Snapcraft application using PyQt5. It has a tray icon with a menu. The tray icon shows up great, just like it should, in every Linux flavor I've tried except for Ubuntu Budgie...

ImportError cannot import name SparkContext

I'm setting the below exports from the shell. export SPARK_HOME=&quot;/opt/cloudera/parcels/CDH-5.4.5-1.cdh5.4.5.p0.7/lib/spark&quot; export...