Background in python
AhmadAyyeh (0)

I am trying to add a background image in python but I cannot figure out how to do so, I am using python 3.0. I am new to programming :)

You are viewing a single comment. View All
JustARatherRidi (190)

Hey, please share your repl so that we can help you out :)

AhmadAyyeh (0)

@JustARatherRidi here it is:
https://repl.it/@AhmadAyyeh/soundex-2
This is only a part of the program, I've been trying on this one because I didn't want to mess my project up.....if you want the whole code just let me know!

JustARatherRidi (190)

@AhmadAyyeh Okay, so it looks like both of your programs runs on the terminal (meaning that you print to the terminal and you get input from the terminal), and there really isn't any way to stick an image onto the terminal. All it can do is display characters.

But in your first program, it looks like you're trying to make a GUI using tkinter, which is what you should do if you really wanted to show that image.

How you would go about making a GUI in tkinter is by using textboxes instead of inputs and using a button to submit, and maybe lists or comboboxes if you want to make it look better.

If you decide that it is worth learning tkinter for the sake of the image, here's an answer that will help

Good luck!

AhmadAyyeh (0)

@JustARatherRidi Hello,
Thanks alot for your help, I kind of understood how to work with tkinter but I have another problem, whenever I run the program, for some reason it keeps showing soundex_code as p160 and cannot figure out how to fix it....
can you please help me figure it out? here's my code with tkinter:
https://repl.it/@AhmadAyyeh/soundex-with-Tk
and here's my original code:
https://repl.it/@AhmadAyyeh/soundex-2
(by the way, for some reason when I run the code on repl and press on get data it does not always output data (probably connection issues) but when I run it on IDLE on my desktop it works)
Thanks again!