- if ui == 'cli':
- self.present = Cli_Presentation(config)
- elif ui == 'gtk':
- self.present = Gtk_Presentation(config, self.start_search)
- elif ui == 'hildon':
- self.present = Hildon_Presentation(config, self.start_search)
-
- # self.present - for updating windows in interactive presentations
- self.abstrac = Abstraction(config, self.present)
+ self.present = eval(ui + '_Presentation(config, self.start_search)')
+ self.abstrac = Abstraction(self.config, self.present)