-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
Hi thank you for your Patch make sure you have the right commit structure that is
|
Fixes: #293
try: | ||
im.load() | ||
self.show_image(self.image) | ||
except IOError as e: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the as e
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright! @nkprince007 @abhsag24
Closing as it's been unattended for too long. Reopen it if needed. |
Fixes: #293