url
This commit is contained in:
parent
c7c79aef05
commit
5c2f955aef
|
@ -5,6 +5,11 @@ import threading
|
||||||
import time
|
import time
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
def navega():
|
||||||
|
notebook.select(0)
|
||||||
|
#notebook.select(0).label(label_url.get().strip())
|
||||||
|
#notebook.select(0).update()
|
||||||
|
|
||||||
def update_time(status_bar):
|
def update_time(status_bar):
|
||||||
"""Función que actualiza la hora y el día de la semana en un label"""
|
"""Función que actualiza la hora y el día de la semana en un label"""
|
||||||
while True:
|
while True:
|
||||||
|
@ -101,7 +106,6 @@ notebook.pack(fill="both", expand=True)
|
||||||
# Crear cinco solapas
|
# Crear cinco solapas
|
||||||
for i in range(1, 6):
|
for i in range(1, 6):
|
||||||
tab = ttk.Frame(notebook)
|
tab = ttk.Frame(notebook)
|
||||||
|
|
||||||
notebook.add(tab, text=f"Solapa {i}", padding=4)
|
notebook.add(tab, text=f"Solapa {i}", padding=4)
|
||||||
# Añadir un Label en cada solapa para diferenciarla
|
# Añadir un Label en cada solapa para diferenciarla
|
||||||
label = ttk.Label(tab, text=f"Contenido de la Solapa {i}")
|
label = ttk.Label(tab, text=f"Contenido de la Solapa {i}")
|
||||||
|
@ -113,7 +117,6 @@ for i in range(1, 6):
|
||||||
|
|
||||||
# Usar pack para alinear los labels horizontalmente
|
# Usar pack para alinear los labels horizontalmente
|
||||||
|
|
||||||
|
|
||||||
label_1 = tk.Label(barra_estado, text="Estado 1", bg="green", anchor="w", width=20)
|
label_1 = tk.Label(barra_estado, text="Estado 1", bg="green", anchor="w", width=20)
|
||||||
label_2 = tk.Label(barra_estado, text="Estado 2", bg="blue", anchor="w", width=20)
|
label_2 = tk.Label(barra_estado, text="Estado 2", bg="blue", anchor="w", width=20)
|
||||||
label_3 = tk.Label(barra_estado, text="Estado 3", bg="cyan", anchor="w", width=20)
|
label_3 = tk.Label(barra_estado, text="Estado 3", bg="cyan", anchor="w", width=20)
|
||||||
|
@ -129,11 +132,14 @@ label_fecha_hora.pack(side="right", fill="x", expand=True)
|
||||||
|
|
||||||
label_url = tk.Label(frame_izquierdo,
|
label_url = tk.Label(frame_izquierdo,
|
||||||
text="Introduce URL:", font=("Arial", 12), padx=10, pady=10)
|
text="Introduce URL:", font=("Arial", 12), padx=10, pady=10)
|
||||||
label_url.pack()
|
label_url.pack(pady=5)
|
||||||
|
|
||||||
text = tk.Text(frame_izquierdo, height=1, width=20)
|
text = tk.Text(frame_izquierdo, height=1, width=20)
|
||||||
text.pack(pady=5)
|
text.pack(pady=5)
|
||||||
|
|
||||||
|
boton = tk.Button(frame_izquierdo, text="NAVEGAR", command=navega)
|
||||||
|
boton.pack(pady=5)
|
||||||
|
|
||||||
label_chat = tk.Label(frame_derecho,
|
label_chat = tk.Label(frame_derecho,
|
||||||
text="C H A T", font=("Arial", 16), padx=10, pady=10)
|
text="C H A T", font=("Arial", 16), padx=10, pady=10)
|
||||||
label_chat.pack()
|
label_chat.pack()
|
||||||
|
|
Loading…
Reference in New Issue