<div dir="ltr">@James As mentioned, I tried making a blend of 'progressIcon' & 'ToolButton' by making some changes to the SugarToolButton code. Here is how the download ProgressIcon @50% completion looks like -> <a href="http://imgur.com/iBg4Ktr">http://imgur.com/iBg4Ktr</a><br><br>Waiting for your reviews :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 3:28 PM, Sam P. <span dir="ltr"><<a href="mailto:sam@sam.today" target="_blank">sam@sam.today</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hello,</p>
<p dir="ltr">I believe that it passes all the key word and normal arguments to the superclass constructors.</p>
<p dir="ltr">Out of interest, why are you using a Gtk drawing area as an additional base class?  Every widget (even the tool button) has the draw signal.  Is this what you are using it for or is there something else?</p>
<p dir="ltr">Thanks,<br>
Sam</p><div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote"><div dir="ltr">On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari <<a href="mailto:iamutkarshtiwari@gmail.com" target="_blank">iamutkarshtiwari@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What does the line "GObject.GObject.__init__(self, **kwargs)" exactly does in the following gist? <br><br><a href="https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085" target="_blank">https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 5:00 AM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks.  Yes, the position is as I described.<br>
<br>
Your question puzzles me.  I didn't think there was any ambiguity or<br>
doubt.  It is unfortunate that I'm the only one who has posted about<br>
the positioning of this design change.<br>
<br>
Is it because you have an alternate suggestion?<br>
<br>
Good to hear combining the widgets worked.  Looking forward to seeing<br>
a patch or pull request.<br>
<span><br>
On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:<br>
> @James Is this the icon position you were talking about as shown in the<br>
> attachment below? Your hint for using ProgressIcon alongwith Toolbutton worked!<br>
> ;) <br>
><br>
</span><span>> On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
><br>
>     A ToolButton normally has an Icon.<br>
><br>
>     Instead of the Icon, assign the ProgressIcon?<br>
><br>
>     As nobody else may have done this, you may need to find and fix any<br>
>     bugs in ProgressIcon or ToolButton that prevent it.<br>
><br>
>     On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:<br>
>     > Is there any way to use a ProgressIcon as a Toolbutton ?<br>
>     ><br>
>     > On 2/1/16, Sam P. <sam@sam.today> wrote:<br>
>     > > Hello!<br>
>     > ><br>
>     > > Maybe just a large down arrow and fill it vertically?  See<br>
>     > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.<br>
>     > ><br>
>     > > Thanks,<br>
>     > > Sam<br>
>     > ><br>
>     > ><br>
</span>>     > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]<br>
<span>>     <a href="mailto:iamutkarshtiwari@gmail.com" target="_blank">iamutkarshtiwari@gmail.com</a>><br>
>     > > wrote:<br>
>     > ><br>
>     > >> How should the Icon for "Download Button" look like? Could you please<br>
>     > >> provide me some artwork for reference. ?<br>
>     > >><br>
</span><span>>     > >> On 2/1/16, Utkarsh Tiwari <[3]<a href="mailto:iamutkarshtiwari@gmail.com" target="_blank">iamutkarshtiwari@gmail.com</a>> wrote:<br>
>     > >> > Omg! I have been looking all over internet on how to integrate a<br>
>     > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using<br>
>     > >> > Gtk.CssProvider styler to scale down the progressbar to a button :D<br>
>     > >> > Now that(ProgressIcon.py) sounds really cool!<br>
>     > >> ><br>
>     > >> > Thank you :) You made my work a bit easier ;)<br>
>     > >> ><br>
</span><span>>     > >> > On 2/1/16, James Cameron <[4]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
>     > >> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon<br>
>     > >> >> in Sugar.<br>
>     > >> >><br>
>     > >> >> In sugar-toolkit-gtk3:<br>
>     > >> >><br>
>     > >> >> Look at progressicon.py, you will see it does not use a<br>
>     ProgressBar,<br>
>     > >> >> but has a __draw_cb method connected to the "draw" signal.<br>
>     > >> >><br>
>     > >> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw<br>
>     > >> >> method.<br>
>     > >> >><br>
>     > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:<br>
>     > >> >>> "The button to be a blend of ProgressIcon and ToolButton". How to<br>
>     > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?<br>
>     > >> >>><br>
</span><span>>     > >> >>> On 1/27/16, James Cameron <[5]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
>     > >> >>> > No.<br>
>     > >> >>> ><br>
>     > >> >>> > The position marked by your cursor seems to be inside the URL<br>
>     entry<br>
>     > >> >>> > box.<br>
>     > >> >>> ><br>
>     > >> >>> > I said between the URL entry box and the back button.<br>
>     > >> >>> ><br>
>     > >> >>> > Review the Browse source code that defines these objects.<br>
>     > >> >>> ><br>
>     > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:<br>
>     > >> >>> >> Is this the exact expected location you were talking about the<br>
>     > >> >>> >> 'download button' as shown in the screenshot below?<br>
>     > >> >>> >><br>
</span>>     > >> >>> >> [6]<a href="http://imgur.com/T0hirTZ" rel="noreferrer" target="_blank">http://imgur.com/T0hirTZ</a><br>
<div><div>>     > >> >>> >><br>
>     > >> >>> >> On 1/27/16, James Cameron <[7]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
>     > >> >>> >> > Thanks for working on this.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > Our Sugar human interface guidelines and existing code base<br>
>     > >> >>> >> > don't<br>
>     > >> >>> >> > have<br>
>     > >> >>> >> > decorated floating windows or window management.  Your<br>
>     proposal<br>
>     > >> >>> >> > would<br>
>     > >> >>> >> > not scale to multiple downloads.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > You might ask for design suggestions on this mailing list.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > I've resisted making design suggestions on this problem<br>
>     because<br>
>     > >> >>> >> > I<br>
>     > >> >>> >> > don't want to constrain the good ideas that may come up.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > To get the design conversation started ...<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > When the first download begins, show a button at the top<br>
>     between<br>
>     > >> >>> >> > the<br>
>     > >> >>> >> > URL entry box and the back button.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > The button to be a blend of ProgressIcon and ToolButton, with<br>
>     > >> >>> >> > the<br>
>     > >> >>> >> > progress fill to show average progress of all downloads.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > When the button is pressed a download tab is to be shown in<br>
>     the<br>
>     > >> >>> >> > canvas, which lists downloads and progress.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > The download tab can be closed like any other tab.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > The button is to be be hidden before any downloads are<br>
>     started,<br>
>     > >> >>> >> > shown<br>
>     > >> >>> >> > on start of first download, and only hidden if the download<br>
>     tab<br>
>     > >> >>> >> > is<br>
>     > >> >>> >> > closed when there are no downloads still active.<br>
>     > >> >>> >> ><br>
>     > >> >>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari<br>
>     wrote:<br>
>     > >> >>> >> >> Hi,<br>
>     > >> >>> >> >><br>
>     > >> >>> >> >>      I am trying to integrate the "Download ProgressBar" in<br>
>     the<br>
>     > >> >>> >> >> download<br>
>     > >> >>> >> >> manager. Here is the screenshot of the prototype on which I<br>
>     am<br>
>     > >> >>> >> >> currently<br>
</div></div>>     > >> >>> >> >> working -> [1][8]<a href="http://imgur.com/WUJL8eX" rel="noreferrer" target="_blank">http://imgur.com/WUJL8eX</a><br>
<span>>     > >> >>> >> >><br>
>     > >> >>> >> >> Since the download progress bar is popping over the browse<br>
>     > >> >>> >> >> activity,<br>
>     > >> >>> >> >> is<br>
>     > >> >>> >> >> it<br>
>     > >> >>> >> >> feasible?<br>
>     > >> >>> >> >><br>
>     > >> >>> >> >> regards,<br>
>     > >> >>> >> >> Utkarsh Tiwari<br>
>     > >> >>> >> >><br>
>     > >> >>> >> >> References:<br>
>     > >> >>> >> >><br>
</span>>     > >> >>> >> >> [1] [9]<a href="http://imgur.com/WUJL8eX" rel="noreferrer" target="_blank">http://imgur.com/WUJL8eX</a><br>
>     > >> >>> >> ><br>
>     > >> >>> >> >> _______________________________________________<br>
>     > >> >>> >> >> Sugar-devel mailing list<br>
>     > >> >>> >> >> [10]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     > >> >>> >> >> [11]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     > >> >>> >> ><br>
>     > >> >>> >> ><br>
>     > >> >>> >> > --<br>
>     > >> >>> >> > James Cameron<br>
>     > >> >>> >> > [12]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     > >> >>> >> > _______________________________________________<br>
>     > >> >>> >> > Sugar-devel mailing list<br>
>     > >> >>> >> > [13]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     > >> >>> >> > [14]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     > >> >>> >> ><br>
>     > >> >>> ><br>
>     > >> >>> > --<br>
>     > >> >>> > James Cameron<br>
>     > >> >>> > [15]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     > >> >>> ><br>
>     > >> >><br>
>     > >> >> --<br>
>     > >> >> James Cameron<br>
>     > >> >> [16]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     > >> >><br>
>     > >> ><br>
>     > >> _______________________________________________<br>
>     > >> Sugar-devel mailing list<br>
>     > >> [17]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     > >> [18]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     > >><br>
>     > ><br>
><br>
>     --<br>
>     James Cameron<br>
>     [19]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
><br>
> References:<br>
><br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] mailto:<a href="mailto:iamutkarshtiwari@gmail.com" target="_blank">iamutkarshtiwari@gmail.com</a><br>
> [3] mailto:<a href="mailto:iamutkarshtiwari@gmail.com" target="_blank">iamutkarshtiwari@gmail.com</a><br>
> [4] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [5] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [6] <a href="http://imgur.com/T0hirTZ" rel="noreferrer" target="_blank">http://imgur.com/T0hirTZ</a><br>
> [7] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [8] <a href="http://imgur.com/WUJL8eX" rel="noreferrer" target="_blank">http://imgur.com/WUJL8eX</a><br>
> [9] <a href="http://imgur.com/WUJL8eX" rel="noreferrer" target="_blank">http://imgur.com/WUJL8eX</a><br>
> [10] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [11] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [12] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [13] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [14] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [15] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [16] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [17] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [18] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [19] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
<div><div><br>
<br>
<br>
--<br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>