Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- class obj:
- def tl(self, name, h, w):
- self.name=name
- self.h = h
- self.w = w
- tl= Label(main_window, text=name)
- tl.place(x=h, y=w)
- main_window = Tk()
- main_window.title('Пример приложения')
- main_window.geometry('400x300+1540+700')
- main_window.resizable(False, False)
- obj().tl("Производитель:", 5, 50)
- obj().tl("Ukraine", 5+(длина предыдущей строки), 50)
- main_window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment