url
This commit is contained in:
		
							parent
							
								
									c7c79aef05
								
							
						
					
					
						commit
						5c2f955aef
					
				|  | @ -5,6 +5,11 @@ import threading | |||
| import time | ||||
| import datetime | ||||
| 
 | ||||
| def navega(): | ||||
|     notebook.select(0) | ||||
|     #notebook.select(0).label(label_url.get().strip()) | ||||
|     #notebook.select(0).update() | ||||
| 
 | ||||
| def update_time(status_bar): | ||||
|     """Función que actualiza la hora y el día de la semana en un label""" | ||||
|     while True: | ||||
|  | @ -100,8 +105,7 @@ notebook.pack(fill="both", expand=True) | |||
| 
 | ||||
| # Crear cinco solapas | ||||
| for i in range(1, 6): | ||||
|     tab = ttk.Frame(notebook) | ||||
|      | ||||
|     tab = ttk.Frame(notebook)   | ||||
|     notebook.add(tab, text=f"Solapa {i}", padding=4) | ||||
|     # Añadir un Label en cada solapa para diferenciarla | ||||
|     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 | ||||
| 
 | ||||
| 
 | ||||
| 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_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,  | ||||
|                  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.pack(pady=5) | ||||
| 
 | ||||
| boton = tk.Button(frame_izquierdo, text="NAVEGAR", command=navega) | ||||
| boton.pack(pady=5) | ||||
| 
 | ||||
| label_chat = tk.Label(frame_derecho,  | ||||
|                  text="C H A T",  font=("Arial", 16), padx=10, pady=10) | ||||
| label_chat.pack() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue