Subversion Repositories basico

Rev

Rev 106 | Rev 113 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 106 Rev 109
Line 23... Line 23...
23
        self.get_services()
23
        self.get_services()
24
        self.setup_widgets()
24
        self.setup_widgets()
25
25
26
26
27
    def setup_widgets(self):
27
    def setup_widgets(self):
-
 
28
        # Toolbar
-
 
29
        tgbshowmenu = self.gui.get_widget('tgbShowMenuView')
-
 
30
        tgbshowmenu.connect('toggled', self.show_menu_view)
28
        # Menu Views
31
        # Menu Views
29
        self.setup_menu_views()
32
        self.setup_menu_views()
30
33
31
        # Views
34
        # Views
32
        viewsbox = self.gui.get_widget('viewsbox')
35
        viewsbox = self.gui.get_widget('viewsbox')
Line 43... Line 46...
43
    def get_services(self):
46
    def get_services(self):
44
        self.gui = self.app.get_service("GUI")
47
        self.gui = self.app.get_service("GUI")
45
        self.uif = self.app.get_service("UIF")
48
        self.uif = self.app.get_service("UIF")
46
        self.cb = self.app.get_service('Callbacks')
49
        self.cb = self.app.get_service('Callbacks')
47
50
-
 
51
-
 
52
    def show_menu_view(self, *args):
-
 
53
        paned = self.gui.get_widget('boxMenuView')
-
 
54
        button = self.gui.get_widget('tgbShowMenuView')
-
 
55
        if button.get_active():
-
 
56
            paned.show_all()
-
 
57
        else:
-
 
58
            paned.hide()
48
59
49
    def setup_menu_views(self):
60
    def setup_menu_views(self):
50
        app = self.gui.get_app()
61
        app = self.gui.get_app()
51
62
52
        # View label
63
        # View label