![]() #eeview_nfigure(yscrollcommand=self.vertical_t, xscrollcommand=self.horizontal_t) Self.scrollbar_y.pack(side="right", fill="y") eeview_nfigure(yscrollcommand=self.scrollbar_y.set) Self.scrollbar_y = tk.Scrollbar(3, orient="vertical", command=eeview_almacen.yview) #("Treeview.Cell", anchor="center") # Centrar contenido eeview_almacen.heading("categoria", text="CATEGORÍA") eeview_almacen.heading("proovedor", text="PROVEEDOR") eeview_almacen.heading("stock", text="STOCK") eeview_almacen.heading("precio_venta", text="PRECIO VENTA") eeview_almacen.heading("precio_compra", text="PRECIO COMPRA") eeview_almacen.heading("producto", text="PRODUCTO") eeview_almacen.heading("codigo", text="CÓDIGO") eeview_almacen = ttk.Treeview(3, columns=("codigo","producto", "precio_compra", "precio_venta", "stock", "proovedor", "categoria")) ![]() #eeview_almacen.bind(">", self.mostrar_seleccion) #eeview_almacen.bind(">", self.mostrar_seleccion eeview_almacen.insert("", "end", values=(self.c_id, self.c_producto, self.c_precio_compra, self.c_precio_venta, self.c_stock, self.c_proveedor, self.c_categoria)) ("SELECT * FROM almacen WHERE id_usuario = '"+self.variables_globales.variable_global1+"' ORDER BY id DESC") # Reemplaza 'tabla' con el nombre de tu tabla Print(self.variables_globales.variable_global1) ![]() Self.variables_globales = VariablesGlobales() Self.boton = ttk.Button(3, text="Haz clic") I'm trying after() but still the same from tkinter import * Hi, I've tried it but when I change the tab it doesn't update, I have to close and open the program again to see the update.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |