Python Forum
I'm Student. help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm Student. help
#1
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()
Reply
#2
see: https://stackoverflow.com/a/53643419
Reply
#3
(Apr-26-2020, 02:04 AM)Larz60+ Wrote: see: https://stackoverflow.com/a/53643419
I cant... Please code edit
Reply
#4
I cant? You have access to internet or you wouldn't be here.
Reply
#5
(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.
Reply
#6
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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020