I am developing an application that has various buttons such as addition, multiplication and so on.. now when I click on addition button I want a dialog box to be displayed that has labels n text inputs (design part). I am facing a problem with linking that dialog box to the button.. Please tell me step by step how to initialize it and what should be written under this :

def on_addition_clicked(self, widget):


In addition to defining the functions to be called, you must connect the signal of the button.
The easiest way to do this is to define a dict with a mapping from the names to the handlers and then pass it to the Gtk.Builder.connect_signals() method. Read here for more help.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.