The GtkDialog class is the class for instantiating dialog widgets.
The class heirarchy
Object +---GtkWidget +---GtkContainer +---GtkDialog |
The methods for the GtkDialog class are documented below.
This method creates and initializes the widget.
This is a example of how to create a new dialog widget.
title = 'Dialog Frame Title' mydiag = .GtkDialog~new(title) |
The new GtkDialog object.
This method add an action button to the action area of the dialog.
This is a example of how to add an action button to a dialog.
text = 'gtk-ok' response = 'GTK_RESPONSE_OK' ok_button = dialog1~addactionbutton(text, response) |
This method runs the specified dialog widget. Control is not returned from this method until either an action button is pressed or the dialog is dismissed.
This is a example of how to run a dialog.
response = mydialog~run() |
None.
If a timeout is set for the dialog and it expires then this method will return the response GTK_RESPONSE_NONE.
This method sets a timeout for the dialog widget. Setting a timeout will cause the dialog to be destroyed after the timeout expires.
This is a example of how to set a timeout for a dialog.
seconds = 5 mydialog~settimeout = seconds |
None.
This method gets the dialog widget's title.
This is a example of how to retrieve the title from a dialog.
title = mydialog~title() |
None.
This method sets the dialog widget's title.
This is a example of how to set the title of a dialog.
mydialog~title = 'My dialog title' |
None.
This method gets the dialog widget's vertical box widget object.
This is a example of how to retrieve the vbox object from a dialog.
vboxptr = mydialog~vbox() |
None.