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

open and save file #12

Open
ezequielramos opened this issue Jan 6, 2020 · 1 comment
Open

open and save file #12

ezequielramos opened this issue Jan 6, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ezequielramos
Copy link
Member

ezequielramos commented Jan 6, 2020

import subprocess

a = subprocess.check_output(["zenity", "--file-selection"])
print("kkkkk", a)
@ezequielramos ezequielramos added the enhancement New feature or request label Jan 7, 2020
@ezequielramos
Copy link
Member Author

def text_to_screen(
    screen,
    text,
    x,
    y,
    size=50,
    color=(200, 000, 000),
    font_type="data/fonts/orecrusherexpand.ttf",
):
    try:

        text = str(text)
        # font = pygame.font.Font(font_type, size)
        font = pygame.font.SysFont(font_type, size)
        text = font.render(text, True, color)
        screen.blit(text, (x, y))

    except Exception as e:
        print("Font Error, saw it coming")
        raise e

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

No branches or pull requests

1 participant