Python Forum
GUI application - code review
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI application - code review
#4
(Jan-01-2024, 08:50 PM)Axel_Erfurt Wrote:
Output:
Traceback (most recent call last): File "/tmp/Pylang/MainWindow.py", line 6, in <module> from ContinueLearnFrame import ContinueLearnFrame File "/tmp/Pylang/ContinueLearnFrame.py", line 156 self.cards[0].itemconfigure('word', text=f'{self.words['learned']}') ^^^^^^^ SyntaxError: f-string: unmatched '['
change it to

                        self.cards[0].itemconfigure('word', text=f'{self.words["learned"]}')
                        self.cards[1].itemconfigure('word', text=f'{self.words["native"]}')

didnt get those errors on my runs but indeed it may cause problems i have changed it thanks for the notes if u have any more thoughts i will glad to hear them
Reply


Messages In This Thread
GUI application - code review - by Sr999 - Jan-01-2024, 11:12 AM
RE: GUI application - code review - by Axel_Erfurt - Jan-01-2024, 08:45 PM
RE: GUI application - code review - by Axel_Erfurt - Jan-01-2024, 08:50 PM
RE: GUI application - code review - by Sr999 - Jan-06-2024, 10:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python code review | Tkinter gui application Sr999 19 2,670 Dec-03-2023, 10:24 PM
Last Post: menator01
  Code review of my rock paper scissors game Milan 0 2,090 May-25-2022, 06:59 AM
Last Post: Milan
  First time python user - Calculator code review Steamy 1 2,274 Jul-22-2020, 05:59 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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