Skip to content

Instantly share code, notes, and snippets.

View rahim42324's full-sized avatar

Rahim Akhtar rahim42324

  • Karachi, Pakistan
View GitHub Profile
from tkinter import *
from tkinter import ttk
from tkinter.messagebox import showinfo
def message():
if len(var1.get()) !=0 and len(var2.get())!=0:
showinfo("Message", f"Your are successfully login!")
else:
showinfo("Message", f"Please Enter the correct username and password")
from tkinter import *
from tkinter import ttk
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
#username
from tkinter import *
from tkinter import ttk
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
lbl = Label(window, text="Python", font=("Arial Bold", 30))
@rahim42324
rahim42324 / btn.py
Last active January 11, 2021 04:21
from tkinter import *
from tkinter import ttk
#function call
def Btn_function():
print("Button is pressed!")
window = Tk()
#Setting the size of the window
window.geometry('350x200')
from tkinter import *
from tkinter import ttk
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
lbl = Label(window, text="Python", font=("Arial Bold", 30))
@rahim42324
rahim42324 / ttk1.py
Last active January 11, 2021 00:54
from tkinter import *
from tkinter import ttk
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
lbl = Label(window, text="Python", font=("Arial Bold", 30))
from tkinter import *
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
lbl = Label(window, text="Python", font=("Arial Bold", 30))
lb1.pack()
from tkinter import *
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
lbl = Label(window, text="Python", font=("Arial Bold", 30))
from tkinter import *
window = Tk()
#Setting the size of the window
window.geometry('350x200')
window.title("Welcome to Tkinter")
window.mainloop()
#importing modules
from tkinter import *
window = Tk()
window.title("Welcome to Tkinter")
window.mainloop()