mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-18 03:50:25 +01:00
* Added details MVC files.
* Change of katalog file organization. * Small bugfixes. * Code clean up. * Added README file.
This commit is contained in:
@@ -22,9 +22,10 @@
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
from gtkmvc import View
|
||||
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
|
||||
@@ -33,6 +34,13 @@ class MainView(View):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user