I am attempting to create a value-entry + unit-selector, widget, but the unit-selector shows no items. This is a python plugin widget that I am trying to create for gimp2.10.
The unit-selector is using UnitComboBox.
Snippet follows:
If someone could give me links / refs to working code that uses the UnitComboBox, or accomplishes the same thing, or explain how to get it working. It probably needs some constructor value that is not documented. So examples and or documentation that actually shows the arguments required and how they are used would be great. A screen shot of the dialog is screen shot. Anything else I should list here?
[img]Screenshot from 2025-02-25 04-24-57.png[/img]
The unit-selector is using UnitComboBox.
Snippet follows:
Code:
adjustment = gtk.Adjustment(50.0, -10000.0, 10000.0, 1.0, 10.0, 0.0)
value_entry = gtk.SpinButton(adjustment, 1.0, 5)
hbox.add(value_entry)
value_entry.show()
#value_entry.connect("value-changed", on_spinbutton_changed)
unit_selector = gimpui.UnitComboBox()
hbox.add(unit_selector)
unit_selector.show()
#unit_selector.connect("clicked", callback)
If someone could give me links / refs to working code that uses the UnitComboBox, or accomplishes the same thing, or explain how to get it working. It probably needs some constructor value that is not documented. So examples and or documentation that actually shows the arguments required and how they are used would be great. A screen shot of the dialog is screen shot. Anything else I should list here?
[img]Screenshot from 2025-02-25 04-24-57.png[/img]