Nov-28-2023, 10:52 PM
(Nov-28-2023, 12:24 AM)menator01 Wrote: You should not do wild card imports eg from tkinter import *. This will cause problems down the road.
Other than that, nicely done.
Hey menator01 in my learning path i understood from few sources that in case i am using one or two classes from a file i should directly import
such as: from tkinter import Tk
but when i use more than a few classes from the same file i should use import * as it easier to use
now i tried to change the import tkinter line and this is what i got
from tkinter import Label, Tk, Entry, Canvas, Frame, Button, PhotoImage, W, E, CENTER, NO, END
now tell me if im wrong but it looks little bit messy and i do not want everytime i call a label or button to use the full path as i would have use if the import was
import tkinter and then each time i use tkiner.Tk() or tkinter.Button()
tell me which way is more correctly to use as i said i am here to learn and accept your reviews
again thanks for your time you can also re-enter my git i have updated the code changed all imports that had * to specific classes execpt import tkinter