DEV Community

Discussion on: Terminal image with Python

Collapse
 
owijo12 profile image
owijo12 • Edited

how can i use this in a python program ???, (no asci art)
every time i load i get nothing code below ↓

import timg
def save():
    print()

    obj = timg.Renderer()                                                                                               
    obj.load_image_from_file("moonblight.jpg")                                                                                
    obj.resize(100,40)
    obj.render
    city_options = """                       
                         | A) enter the city                                                                     |
                         | B) go look for food                                                                   |
                         | C) go  back into your bunker and die from stupidity                                   |
                         | D) screem for help                                                                    |
                         |_______________________________________________________________________________________|"""

    print(city_options)
    x = input()






save()
Enter fullscreen mode Exit fullscreen mode