Ventana about creada

parent 2e3cc054
import tkinter as ttk
from tkinter import *
class VentanaAbout:
def __init__(self):
self.app = Tk()
self.app.title("About")
self.app.geometry('450x120')
lb1 = ttk.Label(self.app, text="Autores:")
lb1.place(x=40, y=20)
lb2 = ttk.Label(self.app, text="Miguel Ángel González Gallardo")
lb2.place(x=60, y=50)
lb3 = ttk.Label(self.app, text="Juan Santos Poyato")
lb3.place(x=60, y=80)
self.app.mainloop()
\ No newline at end of file
......@@ -6,6 +6,7 @@ from ObtencionRegistro import obtenerRegistros
from Dato import Dato
from Filtros import getFormatosFromCSV
from VentanaAbrir import VentanaAbrir
from About_GUI import VentanaAbout
from Gestor import *
#r = obtenerRegistros(RUTA_ARCHIVO, E_SPIDERING, EXTENSIONES_ADMITIDAS, EXTENSIONES_NOADMITIDAS, UMBRAL_SESIONES)
......@@ -23,7 +24,7 @@ def f_abrir():
global EXTENSIONES_NOADMITIDAS
EXTENSIONES_NOADMITIDAS = getFormatosFromCSV(v.formnoadmin.get())
global E_SPIDERING
E_SPIDERING=v.es==1
E_SPIDERING=v.es!=0
global UMBRAL_SESIONES
try:
UMBRAL_SESIONES=int(float(v.umb.get()))
......@@ -40,6 +41,9 @@ def f_abrir():
def f_salir():
quit()
def about():
v=VentanaAbout()
def barraMenu(ventana):
# DEFINIR BARRA DE MENÚ DE LA APLICACION:
......@@ -70,6 +74,9 @@ def barraMenu(ventana):
menu3 = Menu(barramenu)
barramenu.add_cascade(menu=menu3, label='Ayuda')
menu3.add_command(label='About...',
command=about,
underline=0, compound=RIGHT)
def getDatosRegistro(registro, atributos):
ret = []
......
......@@ -6,6 +6,7 @@ class VentanaAbrir:
def __init__(self):
self.es=IntVar()
self.app = Tk()
self.app.title("Abrir...")
self.app.geometry('450x200')
checkb = ttk.Checkbutton(self.app, text="eSpidering",variable=self.es,onvalue=1,offvalue=0)
checkb.place(x=40, y=30)
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment