# This Python file uses the following encoding: utf-8 # # Author: Roman 'gryf' Dobosz gryf@elysium.pl # # Copyright (C) 2007 by Roman 'gryf' Dobosz # # This file is part of pyGTKtalog. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # ------------------------------------------------------------------------- import os.path import utils.globals from gtkmvc import View from v_details import DetailsView class MainView(View): """This handles only the graphical representation of the application. The widgets set is loaded from glade file""" GLADE = os.path.join(utils.globals.GLADE_DIR, "main.glade") def __init__(self, ctrl): View.__init__(self, ctrl, self.GLADE) self.details = None return def create_sub_view(self, details_ctrl): """attach sub view""" self.details = DetailsView(details_ctrl, False) vpan = self['vpaned1'] vpan.add2(self.details.get_top_widget()) return pass # end of class