Python Forum
GUI application - code review
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI application - code review
#1
Hello guys , i have been learning python for like 1.5 month last time i got here nice reviews and aspects of my code progress and i would like to get another review
my progress is kind of slow cause im learning in my free time and still has a full time job but i would like to hear anyone tips and thoughts about my code in order for me to improve faster.
this is my last project an app to learn language with all data as taken from the internet and translated by google translate to different language so it may not be accurate to all languages but the main idea is the code and not the correction of the data in the program
feel free to write your thoughts

https://github.com/SeanR11/Pylang

**
in your review please try include this elements:
- code readability
- code efficiency



________________________________________
this is my last code review if you want ot check and have any notes to add there: https://python-forum.io/thread-41202.html
Reply
#2
You should add a README with a description on github.
Reply
#3
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"]}')
Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Code review of my rock paper scissors game Milan 2 2,838 Dec-02-2024, 05:35 PM
Last Post: waris24
  Python code review | Tkinter gui application Sr999 19 6,400 Dec-03-2023, 10:24 PM
Last Post: menator01
  First time python user - Calculator code review Steamy 1 2,796 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