Subversion Repositories basico

Rev

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

Rev 276 Rev 277
Line 51... Line 51...
51
        # 0|1|(2) -> SAP Notes Visor | Annotations Visor | (Help)
51
        # 0|1|(2) -> SAP Notes Visor | Annotations Visor | (Help)
52
        self.srvgui.set_key_value('current_visor_tab', page_num)
52
        self.srvgui.set_key_value('current_visor_tab', page_num)
53
        notebook_viewmenu = self.srvgui.get_widget('gtk_notebook_menuview')
53
        notebook_viewmenu = self.srvgui.get_widget('gtk_notebook_menuview')
54
54
55
        if page_num == 0:
55
        if page_num == 0:
56
            # ~ button.set_active(True)
-
 
-
 
56
            self.srvuif.set_widget_visibility('gtk_button_menu_views', True)
57
            self.srvuif.set_widget_visibility('gtk_label_total_notes', True)
57
            self.srvuif.set_widget_visibility('gtk_label_total_notes', True)
58
            visor = self.srvgui.get_widget('visor_sapnotes')
58
            visor = self.srvgui.get_widget('visor_sapnotes')
59
            visible_filter = visor.get_visible_filter()
59
            visible_filter = visor.get_visible_filter()
60
            visor.update_total_sapnotes_count(len(visible_filter))
60
            visor.update_total_sapnotes_count(len(visible_filter))
61
            notebook_viewmenu.set_current_page(0)
61
            notebook_viewmenu.set_current_page(0)
62
        elif page_num == 1:
62
        elif page_num == 1:
63
            # ~ button.set_active(False)
-
 
-
 
63
            self.srvuif.set_widget_visibility('gtk_button_menu_views', False)
64
            self.srvuif.set_widget_visibility('gtk_label_total_notes', True)
64
            self.srvuif.set_widget_visibility('gtk_label_total_notes', True)
65
            visor = self.srvgui.get_widget('visor_annotations')
65
            visor = self.srvgui.get_widget('visor_annotations')
66
            visor.update_total_annotations_count()
66
            visor.update_total_annotations_count()
67
            notebook_viewmenu.set_current_page(1)
67
            notebook_viewmenu.set_current_page(1)
68
68