Python Forum
Label.Place did not work?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Label.Place did not work?
#1
Huh Strange, the label Place I know of code is right but not working... I might missed something:
from tkinter import *
import time

win = Tk()

win.attributes('-fullscreen', True)
win.configure(bg='black')

def start_display(V):
    lab1=Label(win, text=V, font=('DIGITAL DISMAY',50),fg="blue", bg="black")
    lab1.place(x=10,y=10)
    lab1.pack()
    return

while True:
    T = time.strftime("%H:%M:%S")
    start_display(T)
    time.sleep(1)
    win.update()

win.mainloop()
The result is:
[Image: 1PGB545HJk8201WEBcetwngQGrVhoC6wG]

It did not stay position ?

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
Label.Place did not work? - by ATARI_LIVE - Sep-17-2020, 08:52 AM
RE: Label.Place did not work? - by buran - Sep-17-2020, 09:03 AM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-17-2020, 10:48 AM
RE: Label.Place did not work? - by buran - Sep-17-2020, 10:58 AM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-17-2020, 11:04 AM
RE: Label.Place did not work? - by GOTO10 - Sep-17-2020, 11:11 AM
RE: Label.Place did not work? - by buran - Sep-17-2020, 11:05 AM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-17-2020, 12:03 PM
RE: Label.Place did not work? - by TAREKYANGUI - Sep-17-2020, 04:43 PM
RE: Label.Place did not work? - by deanhystad - Sep-17-2020, 05:22 PM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-18-2020, 08:40 AM
RE: Label.Place did not work? - by buran - Sep-18-2020, 10:31 AM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-18-2020, 11:24 AM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-18-2020, 03:05 PM
RE: Label.Place did not work? - by buran - Sep-18-2020, 03:25 PM
RE: Label.Place did not work? - by ATARI_LIVE - Sep-18-2020, 04:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to place global tk text widget in class or on canvas puje 1 578 Jul-04-2020, 09:25 AM
Last Post: deanhystad
  [Tkinter] How to place scroll bar correctly scratchmyhead 1 1,132 May-18-2020, 04:17 PM
Last Post: scratchmyhead
  How to use place holders in tkinter sqlite scratchmyhead 1 608 May-12-2020, 06:13 PM
Last Post: Larz60+
  thinker button gui place next to each other jacklee26 9 1,816 Jul-04-2019, 07:48 AM
Last Post: wuf

Forum Jump:

User Panel Messages

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