Python Forum
Homework/tkinter/python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homework/tkinter/python
#1
So,
I'm making a game, where mathematical operation displays on screen (+-/*) and you have to answer to this.
Now I have a problem.
[Image: 25323880_1737092623009353_643139051_n.png]
The old number remains there, my friend told me to change label but I don't know where... I have some other problems aswell, so I think it would be easier to talk somewhere else (facebook, skype etc).

https://gist.github.com/anonymous/3d7fe1...3ccc0620b3
The problem starts from line 1001 (def update():)
Reply
#2
Ok, so what you do currently, is you create a new label each time you run update().  So if the old label is wider than the new one, you can still see it.

Quote:
    tehe= ttk.Label(raam, text=str(tehe), foreground = 'black', background='white', font='none 60 bold')
    tehe.place(x=20, y=100)

It sounds like what your friend is suggesting (and what I also am suggesting), is that you stop creating new labels, and instead only have one, which you change the text to.
Reply
#3
Where do I put this codeline and what I have to change? Sorry not so good in python yet :D
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP in python homework makashito 4 3,861 Oct-12-2021, 10:12 AM
Last Post: buran
  CyperSecurity Using Python HomeWork ward1995 1 1,930 Jul-08-2021, 03:55 PM
Last Post: buran
Exclamation urgent , Python homework alm 2 2,257 May-09-2021, 11:19 AM
Last Post: Yoriz
  [TkInter]Simple Python Homework zaji_123 4 4,010 Jan-01-2021, 07:09 PM
Last Post: EliesBe
  Homework with python Johnsonmfw 1 1,656 Sep-20-2020, 04:03 AM
Last Post: ndc85430
  Python Homework Help *Urgent GS31 2 2,538 Nov-24-2019, 01:41 PM
Last Post: ichabod801
  Python Homework Question OrcDroid123 1 2,341 Sep-01-2019, 08:44 AM
Last Post: buran
  Python homework / functions sunhyunshine 1 2,415 May-11-2019, 05:37 PM
Last Post: MrTheOne
  python homework help ASAP gk34332 1 2,942 Mar-13-2019, 07:27 PM
Last Post: ichabod801
  Python homework assigment makisha 3 3,232 Feb-28-2019, 10:21 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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