Is there a way to connect 2 listboxes in DearPyGUI? - python

I wanted to know how do I connect 2 listboxes together?
So when scrolling one listbox, the other listbox should scroll by the same amount. Of course both the lists have the same number of entries.

Related

How to create scrollable tkinter widget to cycle through images?

I am writing a GUI to display images (essentially a slideshow). I would like to add a scroll bar so the user can cycle through multiple images at a faster rate then clicking a button. An example of what I would like is below.
Currently, I have implemented the scale widget which when moved with cycle through every 25 images. However, this only works in one direction. Is there a way to bind the scale widget with two commands, one to go forward and backwards? I already have left and right arrow buttons that will cycle through images one by one, but it does not "sync" with the scale widget.
scale = tk.Scale(master=self.root
, orient=tk.HORIZONTAL, from_=self.imgIndex + 1, to=int(len(self.img_lst)), resolution=25,
length=250, width =25,
showvalue=False, command=self.next_25)
# scale.pack(side=BOTTOM, fill=X)
scale.place(x=550,y=650, anchor=tk.CENTER)
Any help/ideas would be greatly appreciated.

Moving elements between Tkinter Treeview widgets

I am trying to implement a function that lets me drag and drop treeview entries between N treeview widgets. I played around with detach/insert as well as move. While I got drag and drop reordering within widgets running, I cannot figure out how to drop them into another.

Is there a way to make a vertically scrollable list of elements in streamlit?

I was searching for ways to make a scrollable list of elements or even a way to fix the height of a column or a container and make it scrollable, so that a long list of elements would remain in the viewport and users wouldn’t have to scroll to the bottom of the page. Did anyone ever make anything similar ?

How to show full text in a Combobox Listbox, because of short width of the Listbox

I am working on tkinter, and I have a question how to read missing letters becuase of short length of combobox.
The actual values in the combobox are:
"IV_#10_fullblank2_edit.kdf_Die1"
"IV_#10_fullblank2_edit.kdf_Die8"
However, because the width of the Listbox is not width enough, values are seen only partly.
What I want to do here is that, when I move my mouse on the value, I want to see the whole item entry so that I don`t need to change width or orders or widgets.
I've seen many times that when I move my mouse on some Combobox, it shows an additional block including explanation or some information.

Pygtk: CellRenderer using up all vertical space

I made a user interface with a ComboBox. I'm using glade so I'm doing the following at runtime
combo_box.set_model(liststore)
cell = gtk.CellRendererText()
combo_box.pack_start(cell,False)
combo_box.add_attribute(cell,'text',0)
And when I click on the ComboBox the cellrenderer takes up all the vertical space of the screen. However, if I limit the number of items in the liststore, and the cellrenderer does not need a to scroll, the problem disappears.
Here's a picture of the problem:
What is happening?
Thank you for your time.
From what I know this is in GTK+ by design (though I have no references, and could equally be completely wrong). The idea is that when you have a list of items in a ComboBox or Menu, which forces the list off the screen. GTK+ makes a decision to place the first item both at the top of the list, and beneath you mouse cursor.
This means that you have the scrolling effect to reach items at the bottom, which GTK+ indicates by creating scrollable whitespace.
The easiest way around this is to structure the items into submenus, but this again could fall over on a small-sized screen.

Categories