Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from Tkinter import *
- from random import uniform
- mini = 1
- maxi = 2
- n = 5
- def button_clicked():
- for i in range(0,n):
- text_out.insert(END, str(uniform(mini, maxi))+"\n")
- root=Tk()
- root.title(u"Генератор случайных чисел с заданием параметров")
- label_title = Label(root, text = u"Генератор случайных чисел с заданием параметров")
- label_title.pack()
- button_test = Button(root, text=u"Клик", command=button_clicked)
- button_test.pack()
- text_out=Text(root,height=7,width=7,font='Arial 14',wrap=WORD)
- text_out.pack()
- root.mainloop()
Add Comment
Please, Sign In to add comment