Next / Previous / Contents / Shipman's homepage

4.4. Application.__pickHandler(): Handler for clicking on the listbox

This method is the callback function that gets called whenever the user clicks on a line in the listbox. It displays the line number and the text on that line.

    def __pickHandler(self, linex):
        """Handler for user clicks on lines in the listbox.
        print "Click on line %d, '%s'" % (linex, self.sbox[linex])