Logo Search packages:      
Sourcecode: xdiagnose version File versions  Download package

def xdiagnose::XDiagnoseWindow::XDiagnoseWindow::finish_initializing (   self,
  builder 
)
Called while initializing this instance in __new__

finish_initalizing should be called after parsing the UI definition
and creating a XDiagnoseWindow object with it in order to finish
initializing the start of the new XDiagnoseWindow instance.

Definition at line 44 of file XDiagnoseWindow.py.

                                          :
        """Called while initializing this instance in __new__

        finish_initalizing should be called after parsing the UI definition
        and creating a XDiagnoseWindow object with it in order to finish
        initializing the start of the new XDiagnoseWindow instance.
        """
        # Get a reference to the builder and set up the signals.
        self.builder = builder
        self.builder.connect_signals(self)

        global launchpad_available
        if launchpad_available:
            # see https://wiki.ubuntu.com/UbuntuDevelopment/Internationalisation/Coding for more information
            # about LaunchpadIntegration
            helpmenu = self.builder.get_object('helpMenu')
            if helpmenu:
                LaunchpadIntegration.set_sourcepackagename('xdiagnose')
                LaunchpadIntegration.add_items(helpmenu, 0, False, True)
            else:
                launchpad_available = False

        ## Views
        views_treestore = self.builder.get_object('views-treestore')
        piter = views_treestore.append(None, ['Troubleshoot', 'Various options for troubleshooting issues'])
        views_treestore.append(piter, ['Resolution', 'Troubleshoot resolution issues'])
        views_treestore.append(piter, ['3D', 'Troubleshoot 3D issues'])

        views_treeview  = self.builder.get_object('views-treeview')
        views_treeview.expand_all()
        views_treeview.connect('button-press-event', self.on_view_selected)

        ## Actions ##
        actions_liststore = self.builder.get_object('actions-liststore')
        actions_liststore.append(['Force Standard Display Resolution', 'Sets all monitors to 1024x768'])
        actions_liststore.append(['Configure Rendering', 'Runs driconf to adjust mesa 3D settings'])

        actions_treeview  = self.builder.get_object('actions-treeview')
        actions_treeview.connect('button-press-event', self.on_action_button_press)
        actions_treeview.connect('button-release-event', self.on_action_button_release)
        actions_treeview.connect('row-activated', self.on_action_activated)


Generated by  Doxygen 1.6.0   Back to index