FAST CODER | PHP TEAM
Menga rosa kop odamlar yozibdi
Darsni bayramdan keyin boshlaylik deb nima deysizlar?
Darsni bayramdan keyin boshlaylik deb nima deysizlar?
Please open Telegram to view this post
VIEW IN TELEGRAM
FAST CODER | PHP TEAM
Voice message
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
โก1๐ฅ1 1
FAST CODER | PHP TEAM
Topinglarchi qanaqa loyihaโ๏ธ ๐ฅ Pythonda ishladik bugun
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Kodi qiziqmi tashlaymi? ๐ฑ
Please open Telegram to view this post
VIEW IN TELEGRAM
FAST CODER | PHP TEAM
Please open Telegram to view this post
VIEW IN TELEGRAM
FAST CODER | PHP TEAM
telifon_funksiyasi(@fast_coder).py
# Telegram kanal @fast_coder
# Dasturchi @rustam_hikmatullayev
# Groups @fastdevuz
# Manbani hurmat qilinglar!
import tkinter as tk
from tkinter import font
class TelefonKlaviatura:
def __init__(self, root):
self.root = root
self.root.title("Telefon Klaviatura")
self.root.geometry("300x450")
self.root.resizable(False, False)
self.root.configure(bg="#242424")
self.fast_coder = ""
self.fast_coder_1 = None
self.fast_coder_2 = False
self.fast_coder_4 = tk.Frame(root, bg="#242424", highlightbackground="#555555",
highlightthickness=1, width=280, height=60)
self.fast_coder_4.pack(pady=20)
self.fast_coder_4.pack_propagate(False)
self.fast_coder_5 = font.Font(family="Arial", size=18, weight="bold")
self.ekran = tk.Label(self.fast_coder_4, text="", bg="#242424", fg="#ffffff",
font=self.fast_coder_5, anchor="e", width=20)
self.ekran.pack(pady=15, padx=10, side=tk.RIGHT)
self.fast_coder_7 = tk.Frame(root, bg="#242424")
self.fast_coder_7.pack(pady=10)
self.tugmalar = {}
self.tugma_malumotlari = [
('1', 0, 0), ('2', 0, 1), ('3', 0, 2),
('4', 1, 0), ('5', 1, 1), ('6', 1, 2),
('7', 2, 0), ('8', 2, 1), ('9', 2, 2),
('*', 3, 0), ('0', 3, 1), ('#', 3, 2)
]
self.fast_coder_6 = font.Font(family="Arial", size=16, weight="bold")
for (belgi, qator, ustun) in self.tugma_malumotlari:
tugma = tk.Button(self.fast_coder_7, text=belgi, font=self.fast_coder_6,
width=3, height=1, bg="#333333", fg="#ffffff",
activebackground="#555555", activeforeground="#ffffff",
relief=tk.RAISED, bd=3)
if belgi == '0':
tugma.bind("<ButtonPress-1>", self.nol_tugma_boshlandi)
tugma.bind("<ButtonRelease-1>", self.nol_tugma_tugadi)
else:
tugma.config(command=lambda b=belgi: self.tugma_bosildi(b))
tugma.grid(row=qator, column=ustun, padx=10, pady=10)
self.tugmalar[belgi] = tugma
# Telegram kanal @fast_coder
# Dasturchi @rustam_hikmatullayev
# Groups @fastdevuz
# Manbani hurmat qilinglar!
self.qushimcha_ramka = tk.Frame(root, bg="#242424")
self.qushimcha_ramka.pack(pady=10)
self.ochirish_tugma = tk.Button(self.qushimcha_ramka, text="โซ", font=("Arial", 16, "bold"),
bg="#cb4335", fg="#ffffff",
activebackground="#e74c3c", activeforeground="#ffffff",
relief=tk.RAISED, bd=3, width=6, height=1,
command=self.ochirish)
self.ochirish_tugma.grid(row=0, column=0, padx=10, pady=10)
self.qongiroq_tugma = tk.Button(self.qushimcha_ramka, text="๐", font=("Arial", 16, "bold"),
bg="#27ae60", fg="#ffffff",
activebackground="#2ecc71", activeforeground="#ffffff",
relief=tk.RAISED, bd=3, width=6, height=1,
command=self.qongiroq_qilish)
self.qongiroq_tugma.grid(row=0, column=1, padx=10, pady=10)
self.root.bind("<Key>", self.klaviatura_bosildi)
self.root.bind("<BackSpace>", lambda e: self.ochirish())
self.fast_coder_3 = None
def nol_tugma_boshlandi(self, event):
"""0 tugmasi bosilganda"""
self.fast_coder_1 = event.time
self.fast_coder_2 = False
self.fast_coder_3 = self.root.after(800, self.nol_uzoq_bosish)
def nol_uzoq_bosish(self):
"""0 tugmasi uzoq bosilganda"""
self.fast_coder_2 = True
self.fast_coder += "+"
self.ekran.config(text=self.fast_coder)
FAST CODER | PHP TEAM
telifon_funksiyasi(@fast_coder).py
self.tugmalar['0'].config(relief=tk.SUNKEN)
def nol_tugma_tugadi(self, event):
"""0 tugmasi qo'yib yuborilganda"""
if self.fast_coder_3:
self.root.after_cancel(self.fast_coder_3)
self.fast_coder_3 = None
if not self.fast_coder_2 and event.time - self.fast_coder_1 < 800:
self.fast_coder += "0"
self.ekran.config(text=self.fast_coder)
self.tugmalar['0'].config(relief=tk.RAISED)
self.fast_coder_2 = False
# Telegram kanal @fast_coder
# Dasturchi @rustam_hikmatullayev
# Groups @fastdevuz
# Manbani hurmat qilinglar!
def tugma_bosildi(self, belgi):
"""Tugma bosilganda"""
self.fast_coder += belgi
self.ekran.config(text=self.fast_coder)
self.tugmalar[belgi].config(relief=tk.SUNKEN)
self.root.after(100, lambda: self.tugmalar[belgi].config(relief=tk.RAISED))
def klaviatura_bosildi(self, event):
"""Kompyuter klaviaturasi bosilganda"""
bosilgan_klavish = event.char
if bosilgan_klavish in "1234567890*#":
if bosilgan_klavish == "0":
self.fast_coder += "0"
self.ekran.config(text=self.fast_coder)
else:
self.tugma_bosildi(bosilgan_klavish)
elif bosilgan_klavish == "+":
self.fast_coder += "+"
self.ekran.config(text=self.fast_coder)
elif bosilgan_klavish == "\r":
self.qongiroq_qilish()
def ochirish(self):
"""Oxirgi raqamni o'chirish"""
if len(self.fast_coder) > 0:
self.fast_coder = self.fast_coder[:-1]
self.ekran.config(text=self.fast_coder)
def qongiroq_qilish(self):
"""Qo'ng'iroq qilish tugmasi bosilganda"""
if self.fast_coder:
qongiroq_oyna = tk.Toplevel(self.root)
qongiroq_oyna.title("Qo'ng'iroq")
qongiroq_oyna.geometry("300x250")
qongiroq_oyna.configure(bg="#242424")
# Telegram kanal @fast_coder
# Dasturchi @rustam_hikmatullayev
# Groups @fastdevuz
# Manbani hurmat qilinglar!
raqam_label = tk.Label(qongiroq_oyna, text=self.fast_coder,
font=("Arial", 18, "bold"),
bg="#242424", fg="#ffffff")
raqam_label.pack(pady=(20, 5))
holat_label = tk.Label(qongiroq_oyna, text="Qo'ng'iroq qilinmoqda...",
font=("Arial", 12),
bg="#242424", fg="#999999")
holat_label.pack(pady=(0, 20))
tugmalar_ramka = tk.Frame(qongiroq_oyna, bg="#242424")
tugmalar_ramka.pack(pady=10)
FAST CODER | PHP TEAM
telifon_funksiyasi(@fast_coder).py
qongiroq_tugmalari = [
("๐", "Ovoz balandligi", "#3498db"), # Ovoz balandligini oshirish
("๐", "Qayta qo'ng'iroq", "#27ae60"), # Qayta qo'ng'iroq
("โธ๏ธ", "Pauza", "#f39c12"), # Pauza
("๐ค", "Mikrofon", "#9b59b6"), # Mikrofon
("โบ๏ธ", "Yozib olish", "#e74c3c"), # Yozib olish
("โ๏ธ", "SMS", "#1abc9c") # SMS
]
for i, (belgi, nom, rang) in enumerate(qongiroq_tugmalari):
qator = i // 3
ustun = i % 3
tugma_ramka = tk.Frame(tugmalar_ramka, bg="#242424")
tugma_ramka.grid(row=qator, column=ustun, padx=10, pady=5)
tugma = tk.Button(tugma_ramka, text=belgi, font=("Arial", 16),
bg="#333333", fg=rang, width=2, height=1,
relief=tk.RAISED, bd=2)
tugma.pack(pady=2)
nom_label = tk.Label(tugma_ramka, text=nom, font=("Arial", 8),
bg="#242424", fg="#999999")
nom_label.pack()
tugatish = tk.Button(qongiroq_oyna, text="โ Tugatish", font=("Arial", 14),
bg="#e74c3c", fg="#ffffff",
command=qongiroq_oyna.destroy)
tugatish.pack(pady=15)
if __name__ == "__main__":
root = tk.Tk(
# Telegram kanal @fast_coder
# Dasturchi @rustam_hikmatullayev
# Groups @fastdevuz
# Manbani hurmat qilinglar!
)
app = TelefonKlaviatura(root)
root.mainloop()
Bugun 12:00 -15 :00 oralig'ida kechagi darsni qilsak nima deysizl
Anonymous Poll
59%
Ha
14%
Ha
28%
Ha๐
๐ฅ2โก1 1
FAST CODER | PHP TEAM pinned ยซBugun 12:00 -15 :00 oralig'ida kechagi darsni qilsak nima deysizlยป
Please open Telegram to view this post
VIEW IN TELEGRAM