How can I create the following event using classes? I want to type "control o", for example, and it call this function. def open(self): a = tkFileDialog.askopenfilename(title="Open", initialdir="/") self.text = open(a).read() self.text1.delete(0.0,END) self.text1.insert(END, self.text) Diego