Python Forum
Which GUI can have indefinite loop ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which GUI can have indefinite loop ?
#17
(Nov-16-2023, 08:57 AM)menator01 Wrote: It's because you have this all in one line
EURCHFcolorlabel=tk.Label(root, text="-").place(x=115,y=5)

Separate it and it will work.



import tkinter as tk
import time
  
root=tk.Tk()
root.title("COLOR CHECK")
root.geometry("300x500")
 
EURCHFlabel=tk.Label(root, text="EURCHF").place(x=5,y=5)
  

 
EURCHFcolorlabel=tk.Label(root, text="-")
EURCHFcolorlabel.place(x=115,y=5)
EURCHFcolorlabel.config(text='Blue', fg='blue')

root.mainloop()
Thank you, it worked.
Reply


Messages In This Thread
Which GUI can have indefinite loop ? - by jst - Nov-15-2023, 06:53 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-15-2023, 07:10 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-15-2023, 07:42 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-15-2023, 09:20 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-15-2023, 09:23 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-15-2023, 09:37 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-16-2023, 05:28 AM
RE: Which GUI can have indefinite loop ? - by jst - Nov-16-2023, 07:32 AM
RE: Which GUI can have indefinite loop ? - by jst - Nov-16-2023, 08:41 AM
RE: Which GUI can have indefinite loop ? - by jst - Nov-16-2023, 09:35 AM
RE: Which GUI can have indefinite loop ? - by jst - Nov-16-2023, 08:01 PM
RE: Which GUI can have indefinite loop ? - by jst - Nov-16-2023, 10:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Init an indefinite number of class MathisDELAGE 9 2,457 Feb-18-2022, 07:49 PM
Last Post: deanhystad
  Indefinite loop ( I think ) marsh20 2 2,005 Aug-20-2020, 12:33 PM
Last Post: deanhystad
  indefinite loop Johnygo 3 2,209 Jul-03-2019, 12:53 PM
Last Post: Johnygo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020