sugarlabs / sugar-toolkit-gtk3

Sugar Learning Environment, Activity Toolkit, GTK 3.
GNU Lesser General Public License v2.1
21 stars 80 forks source link

Added documentation and example for progressicon #354

Closed Hrishi1999 closed 7 years ago

Hrishi1999 commented 7 years ago

I've documented progressicon.py and created example. From my previous work : https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/299 My previous work didn't include an example. I've added it now.

quozl commented 7 years ago

You've started badly; there are two commits instead of one, and your commit message don't comply with our guide to contributing or the previous pull-request on documentation.

I've not looked at your commits in detail yet.

Hrishi1999 commented 7 years ago

But two are different. One is example.

Hrishi1999 commented 7 years ago

I will fix commit message. @quozl @samdroid-apps @walterbender @i5o Review it please. These two commits are different. One is for example and other for docs

quozl commented 7 years ago

Now there's three commits.

Hrishi1999 commented 7 years ago

Yes, @walterbender asked me to update it. Please review it.

quozl commented 7 years ago

Thanks. Tested the example. It was okay. Reviewed commits;

@iamutkarshtiwari, since you wrote progressicon.py do you have any comments on this pull request?

@Hrishi1999, your branch patch-1 is based on (old) 53c5058da08c11f167087a34d7dc7344d2b86098 instead of (new) 67120db59343fcc5b61843327abea9fddafe2381. Please merge with upstream master. See Keep your fork up to date.

quozl commented 7 years ago

Hopefully you are also using make-doc.sh and python -m SimpleHTTPServer to review how your documentation changes appear in context. Here's what your branch looks like as of c57ff0e.

screenshot of _browse activity_

Additional comments;

quozl commented 7 years ago

Parameters is acceptable, per Napoleon list of Docstring Sections which shows Args is an alias.

Hrishi1999 commented 7 years ago

@quozl Done :D

quozl commented 7 years ago

Continuing to wait.

Checkboxes in previous comments above have been updated.

99130b02639600f2645667eb514ef0eea4df0fa5 is a recent commit that shows how to make a clickable reference to sugar3.graphics.icon.Icon

Hrishi1999 commented 7 years ago

@quozl. I don't see check boxes updated. What is the problem exactly?

Hrishi1999 commented 7 years ago

Checking again i found that I have considered pixel_size as string and not integer. I will fix that. But what links you were talking about and what about make-docs.sh

quozl commented 7 years ago

I've tested that I can open this pull-request in a fresh web browser and the checkboxes are updated. Please reload the page and look for tick marks [✓] inside the checkboxes. If your browser cannot display the checkboxes properly, go back through the comments and check them manually. You can find make-doc.sh in the repository.

Hrishi1999 commented 7 years ago

@quozl, review this. And did you use make-doc .sh in sugar devenv. I am having issues installing Sphinx.

quozl commented 7 years ago

Thanks, I had already reviewed 9203025, but was waiting for you to respond my other checkboxes in the pull-request; that are not yet checked-off or ticked. If you have some problem with them, let me know. I have checked with other people and they can see the checkboxes.

Yes, I used make-doc.sh, but not inside sugar-build. I don't use or recommend sugar-build, but I don't see why it should not work. You will need to install Sphinx to be able to use make-doc.sh. I used Ubuntu 16.04 and this step;

apt install python-sphinx

Hope that helps.

Hrishi1999 commented 7 years ago

Thanks. I know what is a checkbox (I am a dev, I've made apps, (not in python)). Let me use Ubuntu and wait.

quozl commented 7 years ago

I've seen that here. trusty is Ubuntu 14.04, and the python-sphinx package in that release does not load a compatible version of napoleon. That's why I said Ubuntu 16.04.

Hrishi1999 commented 7 years ago

@quozl https://paste.fedoraproject.org/519205/

Hrishi1999 commented 7 years ago

"there is no COLOR_BUTTON_RED; use an explicit colour instead, or do not give an example; and," And I've removed the example.