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&#39;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">&lt;<a href=3D=
"mailto:[email protected]" target=3D"_blank">[email protected]<=
/a>&gt;</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&#39;m doing, after<br>
clicking on save I don&#39;t want to open a window or a file chooser dialog=
.<br>
<br>
But what I want to do instead, it&#39;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&#39;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>
&gt; Hi!<br>
&gt;<br>
&gt; If you copy this code into *.glade file then it shows how you could<br=
>
&gt; place the notebook and file chooser widget in a dialog box:<br>
&gt;<br>
&gt; <a href=3D"https://gist.github.com/88f14694cc11273727a5" target=3D"_bl=
ank">https://gist.github.com/88f14694cc11273727a5</a><br>
&gt;<br>
&gt; That should lead to the same functionality with responses. And it is<b=
r>
&gt; not difficult to open a window and wait for button to be pressed.<br>
&gt; There is probably examples of that at <a href=3D"http://www.gtkforums.=
com/" target=3D"_blank">http://www.gtkforums.com/</a> or<br>
&gt; stackoverflow.<br>
&gt;<br>
&gt; atb, Tobias<br>
&gt;<br>
&gt;<br>
&gt; 2015-01-29 11:48 GMT+01:00 Nicolas J=C3=A4ger &lt;<a href=3D"mailto:ja=
[email protected]">[email protected]</a>&gt;:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; &gt; Maybe you are mixing up &quot;file chooser dialog&quot; with=
 &quot;file chooser<br>
&gt; &gt; &gt; widget&quot;.<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 actualy I didn&#39;t know so far that there is a file choos=
e widget<br>
&gt; &gt; (I&#39;m using gtkmm/glade for less than two weeks for now, so I&=
#39;m still<br>
&gt; &gt; learning). I was trying to add the file chooser dialog.<br>
&gt; &gt;<br>
&gt; &gt; I can insert the file chooser widget, but it leads me to another<=
br>
&gt; &gt; problem. using the function run(fileChooserDIALOG) was cool becau=
se<br>
&gt; &gt; It returns the response of the button I click on. There is a way =
to<br>
&gt; &gt; do the same things with a widget ?<br>
&gt; &gt;<br>
&gt; &gt; The solution I eventually plan, is to use a trhead with a loop<br=
>
&gt; &gt; waiting that a button has been clicked. But this solution doesn&#=
39;t<br>
&gt; &gt; seems to be in the spirit of gtk. So if you have any suggestion,<=
br>
&gt; &gt; please share it.<br>
&gt; &gt;<br>
&gt; &gt; regards,<br>
&gt; &gt; /nicoo<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Glade-users maillist=C2=A0 -=C2=A0 <a href=3D"mailto:Glade-users@=
lists.ximian.com">[email protected]</a><br>
&gt; &gt; <a href=3D"http://lists.ximian.com/mailman/listinfo/glade-users" =
target=3D"_blank">http://lists.ximian.com/mailman/listinfo/glade-users</a><=
br>
&gt; &gt;<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==--