Window class implementations for other platforms #35
Labels
Enhancement
Enhancement existing feature
Linux/X11
Issue regarding Linux or X11 support
MacOS
Issue regarding Apple PC OS
Windows
Issues regarding Microsoft Windows OS
Re: cross-platform support (issue #8).
Dragonfly's Window class could be abstracted somewhat to have implementations for Windows, X11 and MacOS.
from dragonfly import Window
should import the implementation for the current platform. As with the cross-platformClipboard
class, implementations for other platforms can be in thedragonfly.util
sub-package.If this is done in dragonfly instead of in external projects such as Aenea, engine implementations can get the window context for supported platforms more easily. This should also make it relatively easy to implement dragonfly's
WaitWindow
,FocusWindow
,StartApp
andBringApp
actions for supported platforms as they mostly just use theWindow
class in some way.I think that python-xlib can be used to implement the Window class for X11. xdotool or xdo can be used instead if I'm wrong about that.
@wolfmanstout you may be interested in this for your Google engine.
The text was updated successfully, but these errors were encountered: