Python Forum
user interface Button not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
user interface Button not working
#5
(Feb-16-2022, 02:33 PM)deanhystad Wrote: Works ok for me. The code you provided is not the code that generated the error (line numbers don't match up). Verify that you are running this code

Why are you doing this?
mot = str(EntreeMot.get())
...
txtMot.configure(text = str(inversion))  # Should not be inside the loop
What is the type of EntreeMot.get()? Do you need to use the str() function? Same question for inversion?
def inverser():
    txtMot.configure(text = EntreeMot.get()[::-1])

I removed that part i dont need it: txtMot.configure(text = str(inversion))

the type is a string
its a palindrome code: You put "alla" and it tells you if it is or not a palindrome.
Reply


Messages In This Thread
user interface Button not working - by Frankduc - Feb-16-2022, 02:15 PM
RE: user interface Button not working - by Frankduc - Feb-16-2022, 02:52 PM
RE: user interface Button not working - by Frankduc - Feb-16-2022, 02:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help on the User Interface Afia 1 608 Jul-21-2023, 07:22 PM
Last Post: snippsat
  WHILE Loop - constant variables NOT working with user input boundaries C0D3R 4 1,589 Apr-05-2022, 06:18 AM
Last Post: C0D3R
  in a login interface when i try login with a user supposed to say test123 but nothing NullAdmin 3 2,381 Feb-20-2021, 04:43 AM
Last Post: bowlofred
  Help with User Interface design code ai_masti 0 1,979 Nov-19-2020, 05:58 PM
Last Post: ai_masti
  User Defined function not working Raj_Kumar 4 3,104 Dec-17-2019, 12:44 PM
Last Post: buran
  os.system("netsh interface set interface 'Wi-Fi' enabled") aniyanetworks 12 10,526 Jan-18-2019, 04:07 AM
Last Post: aniyanetworks

Forum Jump:

User Panel Messages

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