diff cagou/core/common.py @ 135:091e288838e1

plugin chat: use new Symbol widget to display encryption button
author Goffi <goffi@goffi.org>
date Fri, 06 Apr 2018 16:13:08 +0200
parents 1cca97e27a69
children 654b00fa3fdc
line wrap: on
line diff
--- a/cagou/core/common.py	Fri Apr 06 16:13:08 2018 +0200
+++ b/cagou/core/common.py	Fri Apr 06 16:13:08 2018 +0200
@@ -75,3 +75,7 @@
             log.warning(_(u"Invalid symbol {symbol}").format(symbol=symbol))
         else:
             self.text = unichr(code)
+
+
+class SymbolButton(ButtonBehavior, Symbol):
+    pass