MarvellOS icon indicating copy to clipboard operation
MarvellOS copied to clipboard

Upload feature for Gallery Added

Open NiharikaVadlamudi opened this issue 4 years ago • 13 comments

  • Revised, corrected errors.

NiharikaVadlamudi avatar Dec 29 '20 22:12 NiharikaVadlamudi

@akshgpt7 Check this out !

NiharikaVadlamudi avatar Dec 29 '20 22:12 NiharikaVadlamudi

  1. When you upload a picture,the screen goes blank that's all . If you keep clicking NEXT , the image will be shown at the end .
  2. Can you point out exact dimensions ? I was thinking 128x128 would fit to the screen .
  3. If you don't mind could you tell me the steps? Everytime I had to delete my fork and vlone the entire repo on my pc .

NiharikaVadlamudi avatar Dec 30 '20 05:12 NiharikaVadlamudi

  1. I did click the next button till I reached the end, but the image doesn't show. Does it work for you?
  2. Yes 128x128 will be fine for now, rest will be handled in the dynamic sizing.
  3. Basically you just need to make the changes locally to the same cloned repo, commit them and just push to this same branch (make sure it's the same branch as the PR). A few Google searches will help you if you get stuck, or feel free to ask if you don't understand :) This might help: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/committing-changes-to-a-pull-request-branch-created-from-a-fork

akshgpt7 avatar Dec 30 '20 05:12 akshgpt7

@akshgpt7 Simple check, the sample-pictures consists of 10 gifs (orignally) , now when you add a new file there will be a new fil added under the name - sample-pic-11.gif or so to the folder. So after uploading a file check the where its stored. I am sure you'll find it there.

NiharikaVadlamudi avatar Dec 30 '20 06:12 NiharikaVadlamudi

Yeah I did check that, it does add the image there, but smh doesn't show in the gallery. Maybe a problem at my end because if it's added to the folder, it should show up.

akshgpt7 avatar Dec 30 '20 06:12 akshgpt7

Might be . So, just resizing the image is sufficient right ? I guess 128 ×128 will suffice.

NiharikaVadlamudi avatar Dec 30 '20 06:12 NiharikaVadlamudi

Yes that should do.

akshgpt7 avatar Dec 30 '20 16:12 akshgpt7

@akshgpt7 Pushed the code. Please check and let me know if you can see the changes.

NiharikaVadlamudi avatar Jan 02 '21 12:01 NiharikaVadlamudi

I'm getting the following error on running the gallery: AttributeError: 'PhotoImage' object has no attribute 'resize'. Did you try running it?

akshgpt7 avatar Jan 02 '21 18:01 akshgpt7

@akshgpt7 Please check now.

NiharikaVadlamudi avatar Jan 02 '21 19:01 NiharikaVadlamudi

@akshgpt7 Any issue with merging? If so let me know !

NiharikaVadlamudi avatar Jan 04 '21 17:01 NiharikaVadlamudi

Also, I'm still getting the same error as above. Please fix that. Can you run flake8 on the code, and fix the PEP-8 violations. After merging #37, all the code conforms to PEP-8 guidelines, that'll be it

akshgpt7 avatar Jan 04 '21 19:01 akshgpt7

@akshgpt7 Please check now . I ran flake8 , most of them were due to * imports of tkinter (Button , Label, END ,etc ) . And they weren't even in my part of the code . The code is fine , please use - python3 for running the code .

NiharikaVadlamudi avatar Jan 05 '21 04:01 NiharikaVadlamudi