[Sugar-devel] Download Manager ProgressBar [DESIGN]

Utkarsh Tiwari iamutkarshtiwari at gmail.com
Wed Feb 10 17:03:39 EST 2016


What does the line "GObject.GObject.__init__(self, **kwargs)" exactly does
in the following gist?

https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085

On Thu, Feb 4, 2016 at 5:00 AM, James Cameron <quozl at laptop.org> wrote:

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


More information about the Sugar-devel mailing list