[GTALUG] Re-implementing xbattbar in Python

Giles Orr gilesorr at gmail.com
Sun Jan 12 10:53:16 EST 2020


On Fri, 10 Jan 2020 at 15:35, Lennart Sorensen
<lsorense at csclub.uwaterloo.ca> wrote:
>
> On Fri, Jan 10, 2020 at 08:48:26AM -0500, Giles Orr via talk wrote:
> > You're right - that's an excellent starting point.  I found, and was
> > hoping to use, python-xlib:
> > https://github.com/python-xlib/python-xlib/tree/master/examples .  But
> > this is a more complete example.  I'd definitely like to excise the
> > perlcompat ...  Anyway, between the two I might actually get somewhere
> > with this idea.  Thanks!
>
> I find it somewhat horrible that someone even thought to make a perlcompat
> module for python.

That's not the worst of it: I thought "why did he use 'perlcompat'
just for 'die' and 'getopts'?"  So I replaced those commands with the
Python equivalents and removed the library.  Only to discover that
"x11utils" requires "perlcompat".  Seriously?  And "pip3" doesn't even
know it's a dependency so you have to install it by hand.  Kinda
unimpressive.

-- 
Giles
https://www.gilesorr.com/
gilesorr at gmail.com


More information about the talk mailing list