и так далее...

аюсь сделать простой набросок для графического интерфейса, и я получаю предупреждение "переменная" Может быть не определено или определено из импорта по звездам: tkinter для всех моих переменных.

Вот мой код:

from tkinter import *

class myApp :
    def __init__(self, gui,) :
        self.root = gui
        self.bframe = Frame(self.root)  # Create a container Frame at bottom
        self.bframe.pack(side=BOTTOM)
        self.xlabel = Label(self.root, text="Item ID")  # Create the Label
        self.xlabel.pack(side=LEFT)
        self.xentry = Entry(self.root, bd=5)  # Create the Entry box
        self.xentry.pack(side=LEFT)
        self.xentry.bind('<Return>', self.showStockItem)
        self.xentry.focus_set()  # Set focus in the Entry box
        self.xopen = Button(self.root, text="Show", command=self.showStockItem) # Create the open Button
        self.xopen.pack(side=LEFT)
        self.xquit = Button(self.bframe, text="Quit", command=self.quitit) # Create the quit Button
        self.xquit.pack(side=BOTTOM)
        return

gui = Tk()
gui.title("Travel")
app = myApp(gui)
gui.mainloop()

Ответы на вопрос(2)

Ваш ответ на вопрос