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

How to change the window icon in Pyxel. #539

Open
Koroyamie opened this issue May 16, 2024 · 3 comments
Open

How to change the window icon in Pyxel. #539

Koroyamie opened this issue May 16, 2024 · 3 comments

Comments

@Koroyamie
Copy link

Hello,
I'd like to know if it's possible to change the icon in the top left-hand corner of the window, because I've tried to find out, but haven't been able to. Thank you very much for your help.
Capture d'écran 2024-05-16 124031

@merwok
Copy link
Contributor

merwok commented May 16, 2024

I think there is an advanced function:

Help on built-in function icon in module pyxel.pyxel_wrapper:
icon(data, scale, colkey=None)

@Koroyamie
Copy link
Author

I see, but the problem is I don't know how to use this function. Do you have any ideas?

@kitao
Copy link
Owner

kitao commented May 16, 2024

As mentioned in the README, you can check all of the Pyxel APIs here:

Advanced APIs

Pyxel has "advanced APIs" that are not mentioned in this reference because they "may confuse users" or "need specialized knowledge to use".

If you are familiar with your skills, try to create amazing works with this as a clue!

And the API is

def icon(data: List[str], scale: int, colkey: Optional[int]) -> None: ...

The format for data is the same as the Image.set method which is used in the example 03.

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

No branches or pull requests

3 participants