Python Forum
sQlite3 output to tkinter treeview - how do I set / increase width of the output?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sQlite3 output to tkinter treeview - how do I set / increase width of the output?
#2
I have example of that in one o f my projects here: https://github.com/Larz60p/CaliforniaPublicSalaries
see src/CaCompGui.py for entire code
        self.download_tree = ttk.Treeview(frame3b,
                                          height=self.treeheight_download,
                                          padding=(2, 2, 2, 2),
                                          selectmode="extended")
        self.download_tree.heading('#0', text='Files to download',
                                   anchor=tk.CENTER)
        self.download_tree.column('#0', stretch=tk.YES, width=400)

        tree_down_scrolly = tk.Scrollbar(frame3b, orient=tk.VERTICAL,
                                         command=self.download_tree.yview)

        tree_down_scrolly.grid(row=0, rowspan=self.treeheight_download,
                               column=4, sticky='ns')

        tree_down_scrollx = tk.Scrollbar(frame3b, orient=tk.HORIZONTAL,
                                         command=self.download_tree.xview)
        tree_down_scrollx.grid(row=self.treeheight_download + 1, column=0,
                               columnspan=4, sticky='ew')
        self.download_tree.configure(yscroll=tree_down_scrolly)
        self.download_tree.configure(xscroll=tree_down_scrollx)
        self.download_tree.grid(row=0, rowspan=self.treeheight_download,
column=1, columnspan=3, sticky='nsew')
Reply


Messages In This Thread
RE: sQlite3 output to tkinter treeview - how do I set / increase width of the output? - by Larz60+ - Jan-16-2019, 06:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter Shell Terminal Or Shell Output sweetthdevil 5 9,044 Feb-03-2024, 02:51 PM
Last Post: Gribouillis
  tkinter - update/refresh treeview snakes 5 21,174 Dec-02-2023, 07:05 PM
Last Post: aynous19
  [PyGUI] How to format output from layout and keys thruss 2 2,836 Nov-30-2023, 08:11 AM
Last Post: sulo167
  send function output from one py file to another (OOP) lunacy90 15 2,611 Aug-26-2023, 02:42 PM
Last Post: deanhystad
  [Tkinter] How to insert data json to treeview tkinter? Shakanrose 8 4,584 Jan-19-2023, 03:58 PM
Last Post: Shakanrose
  [Tkinter] Different rows colours in treeview tkinter Krissstian 1 1,318 Nov-20-2022, 09:59 PM
Last Post: woooee
  [PyQt] Execute the script in remote and get the output maiya 2 1,426 Jul-10-2022, 05:03 AM
Last Post: maiya
  [Tkinter] About Tkinter Treeview.selection_get() usage. water 3 8,454 Feb-12-2022, 02:19 PM
Last Post: water
  [Tkinter] TKINTER quiz using sqlite3 database hezza_23 45 21,837 Nov-29-2021, 09:42 PM
Last Post: Hilal
  [Tkinter] [split] Is there a way to embed a treeview as a row inside another treeview? CyKlop 5 3,437 Oct-20-2021, 12:14 AM
Last Post: CyKlop

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020