▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3fLFQ8p
8:11 mayby i mean yes if it come from windows doh! ofc you can change color in python. make your own menu? make your own everything it will look exactly you want it
One problem that I see in night mode is that the cursor is invisible. Is there a way to set the cursor color and/or size/type? I think the default cursor is a black flashing bar vs block, etc.
Hello, i know the doubt i am having is not related to this video, but i learnt basic from u sir, i need a small help in my code... So, i was writing a code for BMI and in that when a second window is opened for standard use(lbs) then the entry widget in that window is disappearing and a label in main window is glitching through an entry box. I donno what happened can u tell the possible reasons for that sir?
@@cool-cloud ok , don't get scared by my coding skills, i am still learning and my first app so this is the code from tkinter import * root=Tk() root.title("BMI calculator metric") root.geometry("372x400") global weight_box global height_box #frame=LabelFrame(root,text="Metric",padx=372,pady=400).pack(padx=10,pady=10) def compute(): weight=weight_box.get() height=height_box.get() global Weight global Height Weight=int(weight) Height=int(height) weight_box.delete(0,END) height_box.delete(0,END) #res=(Weight/(Height*Height))*10000 result_box.insert(0,round((Weight/(Height*Height))*10000,2)) #result_box.insert(0,(Weight/(Height*Height))*10000) def std(): def compute_std(): return
standard=Toplevel() standard.title("BMI calculator standard") standard.geometry("372x400") #creating entry for weight and height weight_std_box=Entry(standard,width=30,borderwidth=3) weight.grid(row=0,column=1,padx=10,pady=(15,0))
@@cool-cloud thank you so much dude, i missed that and now its alright and yeah i will remove the global variables in main code and its a good idea message box.... thanks again..and a small help how to get the value like after calculation by pressing return key...like we usually do in other calculators?
@@Codemycom If I assign the background / foreground color of Text widget when instanciating. The ideal ap should consider how to save settings of related widgets before switch-on the Dark mode! If not, original settings are all gone.
Thank you for this wonderful video. It helped my project. Sir I found a solution to change menubar theme to dark: my_menu = Menu(root) my_menu.config(bg="grey", fg="white") It works well to me.
@@alvinsetyapranata3928 The status bar is just a label widget. Hide it, and add your progress bar and have it do whatever you want it to do. When you're done, hide the progress bar and re-add the status bar.
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/2UFLKgj bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶️ Get The Code
bit.ly/3fLFQ8p
dark mode is useful for long text reading 😁 Thanks for this cool tutorial👍🏼
Glad you liked it!
8:11 mayby i mean yes if it come from windows doh! ofc you can change color in python. make your own menu? make your own everything it will look exactly you want it
Thank you for making it so easy! It really helped me in my project :)
Glad to help!
Please can you make a GUI 3D gaming tutorial in python soon?
I’m not much of a game guy
Please make tutorial about how to set background image on tkinter window..
I did
One problem that I see in night mode is that the cursor is invisible. Is there a way to set the cursor color and/or size/type? I think the default cursor is a black flashing bar vs block, etc.
Soltuion: .config(insertforeground="black", insertbackground="white" insertwith=2)
Reference: tkdocs.com/shipman/text.html
do we have a solution to also change border color of Menu ?
You can't. Windows settings decide that
An interesting function to add would be a find, find all and replace function.
For sure
Sir how to change the color of the title bar?
Hello, i know the doubt i am having is not related to this video, but i learnt basic from u sir, i need a small help in my code...
So, i was writing a code for BMI and in that when a second window is opened for standard use(lbs) then the entry widget in that window is disappearing and a label in main window is glitching through an entry box.
I donno what happened can u tell the possible reasons for that sir?
@@cool-cloud ok , don't get scared by my coding skills, i am still learning and my first app so this is the code
from tkinter import *
root=Tk()
root.title("BMI calculator metric")
root.geometry("372x400")
global weight_box
global height_box
#frame=LabelFrame(root,text="Metric",padx=372,pady=400).pack(padx=10,pady=10)
def compute():
weight=weight_box.get()
height=height_box.get()
global Weight
global Height
Weight=int(weight)
Height=int(height)
weight_box.delete(0,END)
height_box.delete(0,END)
#res=(Weight/(Height*Height))*10000
result_box.insert(0,round((Weight/(Height*Height))*10000,2))
#result_box.insert(0,(Weight/(Height*Height))*10000)
def std():
def compute_std():
return
standard=Toplevel()
standard.title("BMI calculator standard")
standard.geometry("372x400")
#creating entry for weight and height
weight_std_box=Entry(standard,width=30,borderwidth=3)
weight.grid(row=0,column=1,padx=10,pady=(15,0))
height_feet=Entry(standard,width=30,borderwidth=3)
height_feet.grid(row=2,column=1,columnspan=1,pady=(0,7))
height_inches=Entry(standard,width=30,borderwidth=3)
height_inches.grid(row=3,column=1,columnspan=1)
result_std_box=Entry(standard,width=30,borderwidth=3)
result_std_box.grid(row=5,column=1,columnspan=1)
#creating label for entries
weight_std=Label(standard,text="Your weight in pounds :")
weight_std.grid(row=0,column=0,pady=15)
height_std=Label(standard,text="Your height:")
height_std.grid(row=1,column=0,sticky=W)
height_feet_label=Label(standard,text="Feet")
height_feet_label.grid(row=2,column=0,sticky=W)
height_inches_label=Label(standard,text="Inches")
height_inches_label.grid(row=3,column=0,sticky=W)
result_std=Label(standard,text="Your BMI is :")
result_std.grid(row=5,column=0,sticky=W)
def metric():
standard.destroy()
#buttons
compute=Button(standard,text="Compute BMI",command=compute_std)
compute.grid(row=4,column=1,padx=30,pady=10,columnspan=2,sticky=W,ipadx=9)
metric_b=Button(standard,text="Use Metric",command=metric)
metric_b.grid(row=6,column=1,padx=30,columnspan=2,sticky=W,ipadx=18)
#info btn function
def Info():
info_label=Label(root,text="Your BMI is "+result_box.get()+"
"
+"BMI categories:"+"
"
+"Underweight =
@@cool-cloud thank you so much dude, i missed that and now its alright and yeah i will remove the global variables in main code and its a good idea message box....
thanks again..and a small help how to get the value like after calculation by pressing return key...like we usually do in other calculators?
@@cool-cloud ok sure, thanks i will try that and get back to u..😁😁
How can be deleted all *tags* used in our Text Widget.
Plz, instruct. Thank You
just delete them
@@Codemycom Done. Thanks
Would u please upload a video telling all function of a tag used in Text Widget of tkinter
@@codeKeshav What functions? I pretty much cover it already
@@Codemycom No, you did not covered tag_ranges(), tag_prevrange(), tag_nextrange() and other stuffs like that
This video is funny.
But after switch on/off Night mode, the predefined color settings of widgets are all gone !
not if you put them aback in
@@Codemycom
If I assign the background / foreground color of Text widget when instanciating.
The ideal ap should consider how to save settings of related widgets before switch-on the Dark mode! If not, original settings are all gone.
@@詹明憲-q3u So do that. lol this was just an example, of course if you want it to do something different, then do it.
@@Codemycom Thanks for your response.
My warm regards to you
Thank you
Thanks for the vídeo, please how to make number of line
Number of line what?
@@Codemycom add line numbers in the text editor please
@@hrazajime117 good suggestion
Thank you for this wonderful video. It helped my project.
Sir I found a solution to change menubar theme to dark:
my_menu = Menu(root)
my_menu.config(bg="grey", fg="white")
It works well to me.
You are fabulous....
By the way, I commented first
Sir, please make a series regarding printing using python also......pls.....
@@namanagarwal8199 no, Sir, please do pygame not wot Naman Agarwal said.
@@dimitriosdesmos4699 😀😀😂😂🤣🤣
Thanks!
Hi john, can you make the videos that using loading bar in status bar please......
What do you mean by loading bar?
@@Codemycom I mean i want to make progress bar but i want to put it in the statusbar
@@alvinsetyapranata3928 I have a video on progress bars in this playlist
@@Codemycom yes i know but you dont explain how to make a progress bar in the status bar
@@alvinsetyapranata3928 The status bar is just a label widget. Hide it, and add your progress bar and have it do whatever you want it to do. When you're done, hide the progress bar and re-add the status bar.
FIRST TO COMMENT!
Awesome!