don't add the radiobuttons into a GtkFrame.
2007-05-06 Sven Neumann <sven@gimp.org> * plug-ins/pygimp/gimpfu.py: don't add the radiobuttons into a GtkFrame. * plug-ins/pygimp/plug-ins/sphere.py: added a PF_RADIO parameter as an example and for testing purposes. svn path=/trunk/; revision=22442
This commit is contained in:
committed by
Sven Neumann
parent
0d7835ac5b
commit
9d91f3c5b7
@ -475,19 +475,15 @@ def _interact(proc_name, start_params):
|
||||
def get_value(self):
|
||||
return self.get_active()
|
||||
|
||||
class RadioEntry(gtk.Frame):
|
||||
class RadioEntry(gtk.VBox):
|
||||
def __init__(self, default=0, items=((_("Yes"), 1), (_("No"), 0))):
|
||||
gtk.Frame.__init__(self)
|
||||
|
||||
box = gtk.VBox(False, 6)
|
||||
self.add(box)
|
||||
box.show()
|
||||
gtk.VBox.__init__(self, homogeneous=False, spacing=2)
|
||||
|
||||
button = None
|
||||
|
||||
for (label, value) in items:
|
||||
button = gtk.RadioButton(button, label)
|
||||
box.pack_start(button)
|
||||
self.pack_start(button)
|
||||
button.show()
|
||||
|
||||
button.connect("toggled", self.changed, value)
|
||||
|
||||
Reference in New Issue
Block a user