Re: glade and/or gtkmm, insert a FileChooserDialog inside a Notebook tab
Tobias Schneider-Schönberg <[email protected]> Thu, 29 Jan 2015 13:23:44 +0100
| Newsgroups | gmane.comp.gnome.glade.user |
|---|---|
| Message-ID | <CADwMZvVdQPPr0iNnB9-oiwuCtWMSWUqfArw9_XhmGLDM_fD8cQ@mail.gmail.com> |
--===============0624427755== Content-Type: multipart/alternative; boundary=089e01183364263e36050dc98f27 --089e01183364263e36050dc98f27 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-s= crolling-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=C3=A4ger <[email protected]>: > 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=C3=A4ger <[email protected]>= : > > > > > 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 - [email protected] > > > http://lists.ximian.com/mailman/listinfo/glade-users > > > > > _______________________________________________ > Glade-users maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/glade-users > --089e01183364263e36050dc98f27 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi Nicolas!<br><br></div><div>I don't fully under= stand what you are trying to do. But switching and opening tabs is possible= . For example:<br></div><div><div><div><div><div><div><br><a href=3D"http:/= /stackoverflow.com/questions/11773132/gtk-notebook-change-page-with-scrolli= ng-and-alt1-like-firefox-chrome-epipha">http://stackoverflow.com/questions/= 11773132/gtk-notebook-change-page-with-scrolling-and-alt1-like-firefox-chro= me-epipha</a><br><br></div><div>For Python the documentation is here: <a hr= ef=3D"https://developer.gnome.org/gtk3/stable/GtkNotebook.html">https://dev= eloper.gnome.org/gtk3/stable/GtkNotebook.html</a><br></div><div><br></div><= div>If you have a couple of annotated screen-shots or a running example tha= t would help.<br><br></div><div>atb, Tobias<br></div></div></div></div></di= v></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">201= 5-01-29 12:50 GMT+01:00 Nicolas J=C3=A4ger <span dir=3D"ltr"><<a href=3D= "mailto:[email protected]" target=3D"_blank">[email protected]<= /a>></span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 = .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> thanx, but actualy, what you send to me, looks pretty close to what I<br> have. My problem is, I want to use only one window for the whole<br> application.<br> <br> Then, when I work on tab and I want to save what I'm doing, after<br> clicking on save I don't want to open a window or a file chooser dialog= .<br> <br> But what I want to do instead, it's having the file chooser opened in<b= r> one tabs in my main window.<br> <br> As I said, my problem by doing that is I don't have a run() function<br= > who can returns the response.<br> <br> regards,<br> /nicoo<br> <div class=3D"HOEnZb"><div class=3D"h5"><br> <br> <br> > Hi!<br> ><br> > If you copy this code into *.glade file then it shows how you could<br= > > place the notebook and file chooser widget in a dialog box:<br> ><br> > <a href=3D"https://gist.github.com/88f14694cc11273727a5" target=3D"_bl= ank">https://gist.github.com/88f14694cc11273727a5</a><br> ><br> > That should lead to the same functionality with responses. And it is<b= r> > not difficult to open a window and wait for button to be pressed.<br> > There is probably examples of that at <a href=3D"http://www.gtkforums.= com/" target=3D"_blank">http://www.gtkforums.com/</a> or<br> > stackoverflow.<br> ><br> > atb, Tobias<br> ><br> ><br> > 2015-01-29 11:48 GMT+01:00 Nicolas J=C3=A4ger <<a href=3D"mailto:ja= [email protected]">[email protected]</a>>:<br> ><br> > > Hi,<br> > ><br> > > > Maybe you are mixing up "file chooser dialog" with= "file chooser<br> > > > widget".<br> > ><br> > >=C2=A0 actualy I didn't know so far that there is a file choos= e widget<br> > > (I'm using gtkmm/glade for less than two weeks for now, so I&= #39;m still<br> > > learning). I was trying to add the file chooser dialog.<br> > ><br> > > I can insert the file chooser widget, but it leads me to another<= br> > > problem. using the function run(fileChooserDIALOG) was cool becau= se<br> > > It returns the response of the button I click on. There is a way = to<br> > > do the same things with a widget ?<br> > ><br> > > The solution I eventually plan, is to use a trhead with a loop<br= > > > waiting that a button has been clicked. But this solution doesn&#= 39;t<br> > > seems to be in the spirit of gtk. So if you have any suggestion,<= br> > > please share it.<br> > ><br> > > regards,<br> > > /nicoo<br> > > _______________________________________________<br> > > Glade-users maillist=C2=A0 -=C2=A0 <a href=3D"mailto:Glade-users@= lists.ximian.com">[email protected]</a><br> > > <a href=3D"http://lists.ximian.com/mailman/listinfo/glade-users" = target=3D"_blank">http://lists.ximian.com/mailman/listinfo/glade-users</a><= br> > ><br> <br> _______________________________________________<br> Glade-users maillist=C2=A0 -=C2=A0 <a href=3D"mailto:[email protected]= an.com">[email protected]</a><br> <a href=3D"http://lists.ximian.com/mailman/listinfo/glade-users" target=3D"= _blank">http://lists.ximian.com/mailman/listinfo/glade-users</a><br> </div></div></blockquote></div><br></div> --089e01183364263e36050dc98f27-- --===============0624427755== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Glade-users maillist - [email protected] http://lists.ximian.com/mailman/listinfo/glade-users --===============0624427755==--