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

BaseImage Spam #252

Closed
AlcuZan opened this issue Jan 14, 2021 · 4 comments
Closed

BaseImage Spam #252

AlcuZan opened this issue Jan 14, 2021 · 4 comments

Comments

@AlcuZan
Copy link

AlcuZan commented Jan 14, 2021

Every time I debug a BaseImage, this gets posted into the console:

BaseImage Object 0x284ea085610
	Path: img/chars/elias_portrait.png
	Drawing mode: 101
	Drawing offset: (0, 0)
BaseImage Object 0x284ea085610
	Path: img/chars/elias_portrait.png
	Drawing mode: 101
	Drawing offset: (0, 0)

It's quite annoying, can I turn it off somehow?

@ppizarror
Copy link
Owner

ppizarror commented Jan 14, 2021

I think that baseimage str is unnecesary, should I remove it?

def __str__(self):
    """
    :return: String definition of the object
    :rtype: str
    """
    msg = 'BaseImage Object {3}\n\tPath: {0}\n\tDrawing mode: {1}\n\tDrawing offset: {2}'
    return msg.format(self._filepath, self._drawing_mode, self._drawing_offset, hex(id(self)))

def __repr__(self):
    """
    Prints the object.

    :return: None
    """
    print(self.__str__())

@AlcuZan
Copy link
Author

AlcuZan commented Jan 14, 2021

Agreed.

@ppizarror
Copy link
Owner

Ok, I'll remove it, and along with #251 I will create another v3 version. These changes will also be included in v4

@ppizarror
Copy link
Owner

New v3.5.1 uploaded :)

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

No branches or pull requests

2 participants