Python Forum

Full Version: I'm Student. help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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()
(Apr-26-2020, 02:04 AM)Larz60+ Wrote: [ -> ]see: https://stackoverflow.com/a/53643419
I cant... Please code edit
I cant? You have access to internet or you wouldn't be here.
(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.
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