Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes Broken Wallpapers #300

Closed
wants to merge 2 commits into from
Closed

Removes Broken Wallpapers #300

wants to merge 2 commits into from

Conversation

Aniq55
Copy link
Member

@Aniq55 Aniq55 commented Dec 29, 2016

Fixes: #293

@abhay-raizada
Copy link
Member

Hi thank you for your Patch make sure you have the right commit structure that is

tag: Shortlog

body
Fixes <issue number/url>

try:
im.load()
self.show_image(self.image)
except IOError as e:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to add as e

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the as e

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will change that later, its of no harm though

@@ -2,7 +2,9 @@

from tkinter import *
from PIL import ImageTk
from PIL import Image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can import both in one line

from uiplib.uipImage import UipImage
import os
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to see PEP8 standard for importing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did not give any linting error though

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aniq55 yes but we do have standard imports and it'll be better if we maintain them, can you check the wikis? i think we have it there.

self.show_image(self.image)
im = Image.open(imagePath)
try:
im.load()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this is how we want to do this? Maybe add this to UIP image object? Consult @abhsag24

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure myself, yes the UIP image class should be used but even then i'm not sure we should check here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhsag24 If the approach needs to be different i.e. changes are to be made in a different file, then I think it is better if the PR is closed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aniq55 why do you think so?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw it would be better if you use our image class and make changes to that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's better using the wrapper @Aniq55. Don't close the PR, BTW.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright! @nkprince007 @abhsag24

@nkprince007
Copy link
Member

Closing as it's been unattended for too long. Reopen it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants