#-- Window1.new { def new(self): pass #pass means no code so we do nothing when the window is created #-- Window1.new } #-- Window1.on_button1_clicked { def on_button1_clicked(self, widget, *args): text = self.entry1.get_text() #get the text from entry1 self.label1.set_text(text) #set the text to label1 #-- Window1.on_button1_clicked }