[pygtk] GtkAssistant ending with a custom button
Peter Clifton
pcjc2 at cam.ac.uk
Tue Sep 11 23:36:16 WST 2007
Hi,
Posting to the Pygtk list, as the gtk-app-devel-list hasn't surfaced an
answer...
I'm trying to use a GtkAssistant for a "Create new project" interaction
where the user picks a project template, then a file-name and location
(With a GtkFileChooserWidget in the assistant page).
>From here, I'd like to finish the interaction, so this is the last page
of the assistant with a type of ASSISTANT_PAGE_CONFIRM.
What I'd like to change however, is the stock "Apply" button which this
ends on, as the interaction dictates it would be best to have a button,
perhaps labelled "Create", and with the stock "new" icon.
The application I'm working on is in Pygtk, so is this an issue of
incomplete binding, is it impossible in general, or have I missed how to
do it?
The GTK C API exposes the buttons in its instance structure:
struct _GtkAssistant
{
GtkWindow parent;
GtkWidget *cancel;
GtkWidget *forward;
GtkWidget *back;
GtkWidget *apply;
GtkWidget *close;
GtkWidget *last;
/*< private >*/
GtkAssistantPrivate *priv;
};
So if they were exposed in the Python binding, we could grab the buttons
and alter them presumably.
Kind regards,
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
More information about the pygtk
mailing list