# -*- coding: utf-8 -*- """ Created on Mon Jun 4 21:27:11 2018 @author: YUBA """ import tkinter """ import math """ Win=tkinter.Tk() Win.title("TS Python") Win.geometry('300x250') label_w=tkinter.Label(Win, text='Send Data') label_w.place(x=0,y=140) """ Окно вывода """ txt=tkinter.Text(Win,width=30,height=5) """txt.place(x=10,y=10) """ txt.pack() txt.insert(1.0,'Окно вывода') """ Окно ввода """ entry_w=tkinter.Entry(Win) entry_w.place(x=60,y=140) """ Кнопки """ btn_start=tkinter.Button(Win, text='Start') btn_start.bind('',lambda event: Start() ) btn_start.place(x=10,y=100) btn_clean=tkinter.Button(Win, text='Clear') btn_clean.bind('', lambda event: Clear()) btn_clean.place(x=60,y=100) btn_stop=tkinter.Button(Win, text='Stop') btn_stop.bind('', lambda event: Stop()) btn_stop.place(x=110,y=100) btn_send=tkinter.Button(Win, text='Send') btn_send.bind('', lambda event: Send()) btn_send.place(x=10,y=170) def Start(): a=0 def Clear(): a=0 def Send(): a=0 def Stop(): a=0 Win.mainloop()