Beispiel #1
0
 def get_view(self, view_type):
     if view_type == 'grid' and flowbox.FLOWBOX_SUPPORTED:
         return flowbox.GameFlowBox(self.game_list,
                                    icon_type=self.icon_type,
                                    filter_installed=self.filter_installed)
     else:
         return GameListView(self.game_store)
Beispiel #2
0
 def get_view(self, view_type):
     """Return the appropriate widget for the current view"""
     if view_type == 'grid':
         return GameGridView(self.game_store)
     return GameListView(self.game_store)
Beispiel #3
0
 def get_view(self, view_type):
     if view_type == 'grid':
         return GameGridView(self.game_store)
     else:
         return GameListView(self.game_store)