Night Mode - Build A Text Editor Part 10 - Python Tkinter GUI Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น •

  • @Codemycom
    @Codemycom  4 ปีที่แล้ว

    ▶️ 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

  • @eddw123
    @eddw123 2 ปีที่แล้ว

    dark mode is useful for long text reading 😁 Thanks for this cool tutorial👍🏼

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      Glad you liked it!

  • @JarppaGuru
    @JarppaGuru 2 ปีที่แล้ว

    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

  • @NeerajSharma-jn9xv
    @NeerajSharma-jn9xv 4 ปีที่แล้ว +1

    Thank you for making it so easy! It really helped me in my project :)

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      Glad to help!

  • @mohamadabdou3638
    @mohamadabdou3638 4 ปีที่แล้ว +3

    Please can you make a GUI 3D gaming tutorial in python soon?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +3

      I’m not much of a game guy

  • @budiariyansa304
    @budiariyansa304 4 ปีที่แล้ว +2

    Please make tutorial about how to set background image on tkinter window..

  • @ayourk1
    @ayourk1 3 ปีที่แล้ว

    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.

    • @ayourk1
      @ayourk1 3 ปีที่แล้ว

      Soltuion: .config(insertforeground="black", insertbackground="white" insertwith=2)
      Reference: tkdocs.com/shipman/text.html

  • @maksimantonio4732
    @maksimantonio4732 4 ปีที่แล้ว +1

    do we have a solution to also change border color of Menu ?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      You can't. Windows settings decide that

  • @rdhunkins
    @rdhunkins 3 ปีที่แล้ว

    An interesting function to add would be a find, find all and replace function.

  • @learnwithnawf246
    @learnwithnawf246 3 ปีที่แล้ว

    Sir how to change the color of the title bar?

  • @aneeshmalapaka8363
    @aneeshmalapaka8363 4 ปีที่แล้ว

    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?

    • @aneeshmalapaka8363
      @aneeshmalapaka8363 4 ปีที่แล้ว

      @@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 =

    • @aneeshmalapaka8363
      @aneeshmalapaka8363 4 ปีที่แล้ว

      @@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?

    • @aneeshmalapaka8363
      @aneeshmalapaka8363 4 ปีที่แล้ว

      @@cool-cloud ok sure, thanks i will try that and get back to u..😁😁

  • @codeKeshav
    @codeKeshav 3 ปีที่แล้ว

    How can be deleted all *tags* used in our Text Widget.
    Plz, instruct. Thank You

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      just delete them

    • @codeKeshav
      @codeKeshav 3 ปีที่แล้ว

      @@Codemycom Done. Thanks

    • @codeKeshav
      @codeKeshav 3 ปีที่แล้ว

      Would u please upload a video telling all function of a tag used in Text Widget of tkinter

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      @@codeKeshav What functions? I pretty much cover it already

    • @codeKeshav
      @codeKeshav 3 ปีที่แล้ว

      @@Codemycom No, you did not covered tag_ranges(), tag_prevrange(), tag_nextrange() and other stuffs like that

  • @詹明憲-q3u
    @詹明憲-q3u 4 ปีที่แล้ว

    This video is funny.
    But after switch on/off Night mode, the predefined color settings of widgets are all gone !

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      not if you put them aback in

    • @詹明憲-q3u
      @詹明憲-q3u 4 ปีที่แล้ว

      @@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.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      @@詹明憲-q3u So do that. lol this was just an example, of course if you want it to do something different, then do it.

    • @詹明憲-q3u
      @詹明憲-q3u 4 ปีที่แล้ว

      @@Codemycom Thanks for your response.

  • @s.baskaravishnu22
    @s.baskaravishnu22 3 ปีที่แล้ว

    My warm regards to you

  • @hrazajime117
    @hrazajime117 4 ปีที่แล้ว +1

    Thanks for the vídeo, please how to make number of line

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Number of line what?

    • @hrazajime117
      @hrazajime117 4 ปีที่แล้ว +1

      @@Codemycom add line numbers in the text editor please

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +2

      @@hrazajime117 good suggestion

  • @fosskingdom
    @fosskingdom 2 ปีที่แล้ว

    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.

  • @namanagarwal8199
    @namanagarwal8199 4 ปีที่แล้ว

    You are fabulous....

    • @namanagarwal8199
      @namanagarwal8199 4 ปีที่แล้ว

      By the way, I commented first

    • @namanagarwal8199
      @namanagarwal8199 4 ปีที่แล้ว +1

      Sir, please make a series regarding printing using python also......pls.....

    • @dimitriosdesmos4699
      @dimitriosdesmos4699 4 ปีที่แล้ว

      @@namanagarwal8199 no, Sir, please do pygame not wot Naman Agarwal said.

    • @namanagarwal8199
      @namanagarwal8199 4 ปีที่แล้ว

      @@dimitriosdesmos4699 😀😀😂😂🤣🤣

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Thanks!

  • @alvinsetyapranata3928
    @alvinsetyapranata3928 4 ปีที่แล้ว

    Hi john, can you make the videos that using loading bar in status bar please......

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      What do you mean by loading bar?

    • @alvinsetyapranata3928
      @alvinsetyapranata3928 4 ปีที่แล้ว

      @@Codemycom I mean i want to make progress bar but i want to put it in the statusbar

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      @@alvinsetyapranata3928 I have a video on progress bars in this playlist

    • @alvinsetyapranata3928
      @alvinsetyapranata3928 4 ปีที่แล้ว

      @@Codemycom yes i know but you dont explain how to make a progress bar in the status bar

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      @@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.

  • @echuidor
    @echuidor 4 ปีที่แล้ว

    FIRST TO COMMENT!