Ejemplo n.º 1
0
 def __init__(self, ui, parent, keys, default_keys):
     self.ui = ui
     self.dialog = ui.searchOptionDialog
     self.parent = parent
     self.dialog.set_transient_for(self.parent)
     self.view = YumexSearchOptionsView(self.ui.searchOptionView)
     self.view.populate(keys, default_keys)
Ejemplo n.º 2
0
class SearchOptions:
    '''
    Search Options Dialog
    '''
    def __init__(self, ui, parent, keys, default_keys):
        self.ui = ui
        self.dialog = ui.searchOptionDialog
        self.parent = parent
        self.dialog.set_transient_for(self.parent)
        self.view = YumexSearchOptionsView(self.ui.searchOptionView)
        self.view.populate(keys, default_keys)

    def run(self):
        self.dialog.run()
        self.dialog.hide()

    def get_filters(self):
        return self.view.get_selected()