0

I am currently discovering glade 3 with gtkmm and I am wondering how to create a multiple window project. For example if i want to generate a dialog Message when a button is clicked in a the main window. Can someone help me please !

Thank you

1 Answer 1

0

Based on advices in the internet, I already implemented a GUI using python by: a) creating a single glade file containing several windows (main, secondary, messages) all differently named in the glade file for further use

builder = gtk.Builder()
builder.add_from_file("/home/onesinglefile.glade")

b) example of 1 "dialog_exitconfirm" message dialog, in the python script, it is initiated as object with self.exitdialog = builder.get_object("dialog_exitconfirm") c) later in the script, use self.exitdialog.show() and self.exitdialog.hide() in order to pop up oder make it hiding/closing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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