es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: GIJGO-TREEVIEW

Tkinter Treeview: cambio de color de fondo en cada

Estoy intentando establecer el fondo de un widget Treeview basado en las respuestas proporcionadas aquí. El problema con esta respuesta es que solo cubre estilos globales. En mi código estoy usando 2-3 Treeviews, cada uno necesita su propio estilo. En el código proporcionado, quiero establecer el fondo del primer Treeview . . . Read more

Cómo permitir únicamente que el marco superior se estire verticalmente.

Intento adoptar https://stackoverflow.com/questions/60954478/tkinter-treeview-doesnt-resize-with-window, con muy pocas modificaciones. import tkinter as tk from tkinter import ttk import random class App(): def __init__(self): self.root = tk.Tk() self.frame = tk.Frame(self.root) self.frame.pack(expand=True, fill=tk.BOTH) self.tree = ttk.Treeview(self.frame, show=”headings”) self.tree.pack(expand=True, ) self.frameBT = tk.LabelFrame(self.root,text=’Buttons’) self.frameBT.pack(expand=True, fill=tk.X) self.button = ttk.Button(self.frameBT, text=”Fill”, command=self.fill) self.button.pack(side=tk.BOTTOM,expand=True) self.fill() self.root.mainloop() def fill(self): . . . Read more

Cómo usar el mat-paginator en algo que no sea MatTableDataSource?

Quiero un paginador en el dataSource de abajo, pero muestra el error “La propiedad ‘paginator’ no existe en el tipo ‘MatTreeFlatDataSource<TreeNode, TreeFlatNode>’“. this.treeFlattener = new MatTreeFlattener(this.transformer, this.getLevel, this.isExpndable, this.getChildren); this.treeControl = new FlatTreeControl<TreeFlatNode>(this.getLevel, this.isExpndable); dataSource: MatTreeFlatDataSource<TreeNode, TreeFlatNode>; this.dataSource = new MatTreeFlatDataSource(this.treeControl, this.treeFlattener); INTENTADO this.dataSource.paginator=this.paginator; this.dataSource.data.paginator=this.paginator; “`

Automatización web con Selenium utilizando Python: ¿Cómo puedo manejar una tabla usando Selenium para encontrar una fila en particular mediante la coincidencia de texto y eliminar esa fila?

A continuación se muestra un fragmento de código que he copiado para un registro (fila). Quiero buscar “selenium1” en el código de abajo y eliminar ese registro de la tabla. He compartido la captura de pantalla de cómo se ve el registro en la tabla. Además, el ID de cada . . . Read more