Skip to content

Instantly share code, notes, and snippets.

@olumide-x
Created May 17, 2024 16:17
Show Gist options
  • Save olumide-x/33e32fea4c139b7c390d7a81a652abda to your computer and use it in GitHub Desktop.
Save olumide-x/33e32fea4c139b7c390d7a81a652abda to your computer and use it in GitHub Desktop.
Dogtail script to launch simple GTK Python application
#! /usr/bin/python3
from dogtail import tree
from dogtail.utils import run
run("./my_app.py", timeout=2)
my_app = tree.root.application('my_app.py')
#print(my_app)
button = my_app.child("MyButton")
#print(button)
button.click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment