[Glade-users] glade and/or gtkmm, insert a FileChooserDialog inside a Notebook tab

Tobias Schneider-Schönberg tobias47n9e at gmail.com
Thu Jan 29 12:23:44 UTC 2015


Hi Nicolas!

I don't fully understand what you are trying to do. But switching and
opening tabs is possible. For example:

http://stackoverflow.com/questions/11773132/gtk-notebook-change-page-with-scrolling-and-alt1-like-firefox-chrome-epipha

For Python the documentation is here:
https://developer.gnome.org/gtk3/stable/GtkNotebook.html

If you have a couple of annotated screen-shots or a running example that
would help.

atb, Tobias

2015-01-29 12:50 GMT+01:00 Nicolas Jäger <jagernicolas at legtux.org>:

> Hi,
> thanx, but actualy, what you send to me, looks pretty close to what I
> have. My problem is, I want to use only one window for the whole
> application.
>
> Then, when I work on tab and I want to save what I'm doing, after
> clicking on save I don't want to open a window or a file chooser dialog.
>
> But what I want to do instead, it's having the file chooser opened in
> one tabs in my main window.
>
> As I said, my problem by doing that is I don't have a run() function
> who can returns the response.
>
> regards,
> /nicoo
>
>
>
> > Hi!
> >
> > If you copy this code into *.glade file then it shows how you could
> > place the notebook and file chooser widget in a dialog box:
> >
> > https://gist.github.com/88f14694cc11273727a5
> >
> > That should lead to the same functionality with responses. And it is
> > not difficult to open a window and wait for button to be pressed.
> > There is probably examples of that at http://www.gtkforums.com/ or
> > stackoverflow.
> >
> > atb, Tobias
> >
> >
> > 2015-01-29 11:48 GMT+01:00 Nicolas Jäger <jagernicolas at legtux.org>:
> >
> > > Hi,
> > >
> > > > Maybe you are mixing up "file chooser dialog" with "file chooser
> > > > widget".
> > >
> > >  actualy I didn't know so far that there is a file choose widget
> > > (I'm using gtkmm/glade for less than two weeks for now, so I'm still
> > > learning). I was trying to add the file chooser dialog.
> > >
> > > I can insert the file chooser widget, but it leads me to another
> > > problem. using the function run(fileChooserDIALOG) was cool because
> > > It returns the response of the button I click on. There is a way to
> > > do the same things with a widget ?
> > >
> > > The solution I eventually plan, is to use a trhead with a loop
> > > waiting that a button has been clicked. But this solution doesn't
> > > seems to be in the spirit of gtk. So if you have any suggestion,
> > > please share it.
> > >
> > > regards,
> > > /nicoo
> > > _______________________________________________
> > > Glade-users maillist  -  Glade-users at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/glade-users
> > >
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/glade-users/attachments/20150129/90f63972/attachment.html>


More information about the Glade-users mailing list