Wednesday, 13 May 2020

Python Tkinter GUI: Add Title, Icon and Geometry || Add Tkinter Window Close Button

Python Tkinter GUI: Add Title, Icon and Geometry || Add Tkinter ...

Python Tkinter GUI: Add Title, Icon and Geometry || Add Tkinter Window Close Button || Python tk
How to change Python Tkinter Title and Icon?
Set Python Tkinte Title and Icon!



Code:

import tkinter as tk
Window = tk.Tk()
Window.geometry("200x200")
Window.wm_iconbitmap('NH.ico')
Window.title("Label Tutorial")
button = tk.Button(Window, text="Close", command=exit)
button.grid(row=2, column=1)
Window.mainloop()



#Python
#Tkinte
#Title
#Icon
#Geometry
#Close_Button



Python Tkinter GUI: Add Scrollbar to Text Box || Insert Text Into Text B...

Python Tkinter GUI: Add Scrollbar to Text Box || Insert Text Into ...

Python Tkinter GUI: Add Scrollbar to Text Box || Insert Text Into Text Box | Python tk


Code:

import tkinter as tk
Window = tk.Tk()
Window.geometry("250x200")
frame = tk.Frame(Window, pady=10, padx=10)
frame.grid(row=0, column=0, sticky="nsew")
text = tk.Text(frame, width=25, height=6, font=("Times New Roman", 12))
text.grid(row=0, column=0, rowspan=6, columnspan=2, pady=5, padx=5)
scrollbar = tk.Scrollbar(frame, command=text.yview)
text['yscroll'] = scrollbar.set
scrollbar.grid(row=0, column=2, rowspan=6, sticky="ns")
quote =
"""HAMLET: To be, or not to be--that is the question: Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous fortune Or to take arms against a sea of troubles And by opposing end them. To die, to sleep-- No more--"""
text.insert(tk.INSERT, quote)
button = tk.Button(frame, text="Close", fg="white", bg="red", command=exit)
button.grid(row=7, column=1)
Window.mainloop()



#Python
#Tkinter
#GUI
#Text_Box
#Scrollbar
#Insert_Text



Python Tkinter GUI: Reload / Refresh tk Label text || Python Tkinter refresh text

Python Tkinter GUI: Reload / Refresh tk Label text || Python ...
Python Tkinter GUI: Reload / Refresh tk Label text || Python Tkinter refresh text

How to reload text in label?
How to refresh text in label?
How to reload label?


Code:
import tkinter as tk
Window = tk.Tk()
Window.geometry("250x200")
Window.wm_iconbitmap('NH.ico')
Window.title("Label Tutorial")
label = tk.Label(Window, text="Insert your text: ")
label.grid(row=0, column=0, pady=5, padx=5)

entry = tk.Entry(Window)
entry.grid(row=0, column=1, pady=5, padx=5)
label1 = tk.Label(Window, text="Your text")
label1.grid(row=1, pady=5, padx=5)
def label_reload():
upText = entry.get()
label1.configure(text=upText)
label1.after(400, label_reload)
label_reload()
button = tk.Button(Window, text="Close", command=exit)
button.grid(row=2, column=1) Window.mainloop()


#Python
#Tkinte
#Label
#Reload
#text #Refresh



Python Tkinter GUI: Padding tk Label field || Python tk label customize

Python Tkinter GUI: Padding tk Label field || Python tk label ...


Python Tkinter GUI: Padding tk Label field || Python tk label customize

How to padding Python Tkinter label?
How to set Python Tkinte label padding?
how to add padding in tkinter?


Code:
import tkinter as tk
Window = tk.Tk()
Window.geometry("250x200")
Window.wm_iconbitmap('NH.ico')
Window.title("Label Tutorial")
label = tk.Label(Window, text="Insert your text: ")
label.grid(row=0, column=0, pady=5, padx=5)
entry = tk.Entry(Window)
entry.grid(row=0, column=1, pady=5, padx=5)
label1 = tk.Label(Window, text="Your text")
label1.grid(row=1, pady=5, padx=5)
Window.mainloop()

Python Tkinter GUI: Modify tk Label font name, color and size || Python tk label customize

Python Tkinter GUI: Modify tk Label font name, color and size ...
Python Tkinter GUI: Modify tk Label font name, color and size || Python tk label customize

How to change tkinter label font name and color?
How to set Python tkinter label font ?
How to set tkinter label background color?


Code:
import tkinter as tk
Window = tk.Tk()
label = tk.Label(Window, text="Hello ", bg="#000000", font=('Verdana', 14, 'bold'), fg="#fff")
label.pack()
label1 = tk.Label(Window, text="Hi, Web ", bg="#ccc", font=('Verdana', 14, 'bold'), fg="#fff")
label1.pack()
Window.mainloop()


#Python
#Tkinte
#Label
#font
#color
#font_size
#background

Python Tkinter GUI: Title, Icon and Geometry Setting || Python Tk

Python Tkinter GUI: Title, Icon and Geometry Setting || Python Tk ...
Python Tkinter GUI: Title, Icon and Geometry Setting


How to change Python Tkinter Title and Icon?
Set Python Tkinte Title and Icon!


Code:
import tkinter as tk
Window = tk.Tk()
Window.geometry("250x200")
Window.wm_iconbitmap('NH.ico')
Window.title("Label Tutorial")
Window.mainloop()


#Python
#Tkinte
#Title
#Icon
#Geometry

Monday, 27 April 2020

Java jFrame transfer data from one jFrame to another jFrame | Java Swing...

Java jFrame transfer data from one jFrame to another jFrame | Java Swing | Eclipse

Send data from one jFrame to another jFrame | Java Swing | Eclipse

Java jFrame transfer data from one jFrame to another jFrame | Java ...

#Send_Data

#Java_Swing

#Java_jFrame

#Window_Builder

#setVisible()

#Eclipse



Java Swing send data from one jFrame to another jFrame | Window Builder | Eclipse

Java Swing send data from one jFrame to another jFrame | Window Builder | Eclipse

Transfer data from one jFrame to another jFrame

Java Swing send data from one jFrame to another jFrame Window ...

 #Java_Swing
#Java_jFrame
#Window_Builder
#Send_Data
#Eclipse

Java jFrame Open one jFrame to another jFrame [setVisible() dispose()] | Java Swing | Eclipse

Java jFrame Open one jFrame to another jFrame [setVisible() dispose()] | Java Swing | Eclipse
Java Swing Call One Frame to Another Frame | Window Builder | Eclipse

Java jFrame Open one jFrame to another jFrame [setVisible ...

 #Java_Swing
#Java_jFrame
#Window_Builder
#setVisible()
#Eclipse