aruhier / barython

Configures lemonbar
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Init parameters for handlers #7

Closed aruhier closed 8 years ago

aruhier commented 8 years ago

Handlers have to be constructed with optional parameters. Could be useful for example with MPD, to specify a host, port and password.

The issue with the current implementation is that there is one constructed object per Handler class, so it's not possible to change a handler object attributes as it would impact every widget subscribed to it.

New implementation proposal:

Necessary to finish a correct implementation of MPDWidget.