Tag: GIJGO-TREEVIEW
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
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
Tengo un widget Treeview de tkinter con varias columnas y una barra de desplazamiento vertical y horizontal. La barra de desplazamiento vertical funciona cuando la cantidad de elementos en el árbol es mayor que el tamaño del widget Treeview, pero parece que la barra de desplazamiento horizontal no tiene la . . . Read more
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; “`
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