- dialog = hildon.PickerDialog(self.window)
- sel = hildon.TouchSelectorEntry(text=True)
- for feature, _ in FeaturedWindow.features:
- sel.append_text(feature)
- dialog.set_selector(sel)
- dialog.set_title("Featured")
- sel.unselect_all(0)
- if dialog.run() == gtk.RESPONSE_OK:
- txt = sel.get_current_text()
- self.featuredwnd = FeaturedWindow(txt)
+ dialog = ButtonListDialog('Featured', self.window)
+ def fn(btn, feature):
+ self.featuredwnd = FeaturedWindow(feature)