Alex_Kuzen
@Alex_Kuzen

Как сдублировать поле в Tkinter, но с изменением координат?

import copy
import tkinter
from tkinter import *
from tkinter import ttk
from gtts import gTTS
import sys


CHN_cordX = 130
CHN_cordY = 5

Ru_CordX = 265
Ru_CordY = 5

def app_Run():


    Win = Tk()
    Win.geometry('500x450')
    Convert_Btn = Button(Win,
                         text='Convert',
                         width=10,
                         height=2,
                         bg='gray',
                         fg='black',
                         font='arail 10')
    Convert_Btn.place(x=0, y=3)

    Sort_Btn = Button(Win,
                      text='Sorting',
                      width=10,
                      height=2,
                      bg='gray',
                      fg='black',
                      font='bold 9')
    Sort_Btn.place(x=0, y=50)

    Quantity_Btn_plus = Button(Win,
                               text='十',
                               width=10,
                               height=2,
                               bg='green',
                               fg='white',
                               font='bold 8'
                               )
    Quantity_Btn_plus.place(x=0, y=100)





    Chn_entr = Entry(Win)
    Chn_entr.place(x=CHN_cordX, y=CHN_cordY)


    Ru_Entr = Entry(Win)
    Ru_Entr.place(x=Ru_CordX, y=Ru_CordY)
    LST = {0: Chn_entr,
           1: Ru_Entr}
#Вот тут должна создаваться копия Двух полей ввода, и помещаться ниже на определенное количество пикселей. Как это реализовать ? 
    LST2 = LST.copy

    Quantity_Btn_minus = Button(Win,
                                text='一',
                                width=10,
                                height=2,
                                bg='red',
                                fg='black',
                                font='bold 8',
                                command= LST2 )
    Quantity_Btn_minus.place(x=0, y=150)
    Win.mainloop()
###############################################################################



if __name__ =='__main__':
    app_Run()
  • Вопрос задан
  • 50 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы