Python Forum
I'm Student. help - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: I'm Student. help (/thread-26271.html)



I'm Student. help - oguzcan - Apr-25-2020

Hi.

I want to background image full screen and "sistemeGirilenKisi" background of the Label transparan. How do it?
import tkinter
from tkinter import*
from tkinter import messagebox
import PIL
from PIL import ImageTk
from PIL import Image

kullaniciEkran = Tk()
kullaniciEkran.title("Stok")
kullaniciEkran.geometry("800x600+0+0")
kullaniciEkran.resizable(FALSE,FALSE)
bilgilendirme = messagebox.showinfo("Bilgilendirme", "Sisteme Giriş Başarılı!")
my_image= ImageTk.PhotoImage(Image.open("bgimage.jpg"))
arkaplan = Label(kullaniciEkran, image=my_image)
arkaplan.place(x=0,y=0,width=800,height=600)

bilgimesaji=Label(kullaniciEkran,text="Catering  Sistemimize Hoş Geldiniz!")
bilgimesaji.pack(side=TOP)


def deneme():
    print("deneme")


menuEkle=Button(kullaniciEkran,compound=TOP, text="Menü Ekle", command=deneme)
menuEkle.place(x=50,y=50,height=50,width=100)
kullaniciEkle = Button(kullaniciEkran, text="Kullanıcı Ekle", compound=TOP , command=deneme)
kullaniciEkle.place(x=150,y=50,height=50,width=100)


sistemeGirilenKisi=Label(kullaniciEkran,text="Sisteme Kayıtlı Kişi Sayısı : ")
sistemeGirilenKisi.place(x=50,y=250)




kullaniciEkran.mainloop()



RE: I'm Student. help - Larz60+ - Apr-26-2020

see: https://stackoverflow.com/a/53643419


RE: I'm Student. help - oguzcan - Apr-26-2020

(Apr-26-2020, 02:04 AM)Larz60+ Wrote: see: https://stackoverflow.com/a/53643419
I cant... Please code edit


RE: I'm Student. help - Larz60+ - Apr-26-2020

I cant? You have access to internet or you wouldn't be here.


RE: I'm Student. help - oguzcan - Apr-26-2020

(Apr-26-2020, 10:13 PM)Larz60+ Wrote: you wouldn't be here.
First of all, I'm sorry for my English. I'm new seeing the python lesson and asked to make a program. Resources are in English and I cannot fully understand.


RE: I'm Student. help - Larz60+ - Apr-27-2020

There's https://translate.google.com/ which is not quite perfect, but pretty good.
The post that I showed shows exactly how to do what you need. https://stackoverflow.com/a/53643419