Mercurial > libervia-desktop-kivy
diff src/contact_list.py @ 10:8b2836b5b6c7
added CagouWidget:
CagouWidget is the base for all selectable widgets, it currently displays basic drop/down menu which will be used to switch widget (in a similar way as in Blender), and a text input which will be the generic search field (behaviour may vary between widgets).
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 08 Jul 2016 20:17:09 +0200 |
parents | 7b0a53d2afd3 |
children |
line wrap: on
line diff
--- a/src/contact_list.py Fri Jul 08 18:30:30 2016 +0200 +++ b/src/contact_list.py Fri Jul 08 20:17:09 2016 +0200 @@ -25,6 +25,7 @@ from kivy.uix.listview import ListView from kivy.adapters.listadapter import ListAdapter from kivy import properties +from cagou_widget import CagouWidget import image @@ -40,11 +41,11 @@ BoxLayout.__init__(self, **kwargs) -class ContactList(QuickContactList, BoxLayout): +class ContactList(QuickContactList, CagouWidget): def __init__(self, host, target, profiles): QuickContactList.__init__(self, host, profiles) - BoxLayout.__init__(self, orientation="vertical") + CagouWidget.__init__(self) self.adapter = ListAdapter(data={}, cls=ContactItem, args_converter=self.contactDataConverter,