Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # Como hacer este script portable
- #
- #
- # formulario
- # posicionamiento place
- import tkinter as tk
- from tkinter import ttk
- from tkinter import messagebox
- def guardar_datos():
- pass
- ventana = tk.Tk()
- ventana.title("Formulario de inscripción")
- ventana.config(width=400, height=370)
- ventana.resizable(False,False)
- ###### cuadros de dialogo
- # retornan True or False
- messagebox.askokcancel(title="INFO", message='Decida')
- messagebox.askyesno(title="INFO", message='Decida')
- messagebox.askretrycancel(title="INFO", message='Decida')
- # barra de progreso
- barra = ttk.Progressbar(maximum=100)
- barra.place(x=10, y=40, width=200)
- barra.step(0)
- barra.start(20)
- barra = ttk.Progressbar(orient=tk.VERTICAL, maximum=100)
- barra.place(x=250, y=80, height=200)
- barra.step(0)
- barra.start(20)
- ventana.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement