Commit 77934d68 authored by James Henstridge's avatar James Henstridge

oops. forgot to save last change to gimpfu.py before committing ...

parent d6b394e1
......@@ -276,7 +276,7 @@ def _interact(func_name):
def get_value(self):
return self.get_active()
class RadioEntry(gtk.Frame):
def __init__(self, default=0, items=(("Yes", 1), ("No", 0))):
def __init__(self, default=0, items=[("Yes", 1), ("No", 0)]):
import gtk
gtk.Frame.__init__(self)
box = gtk.HBox(gtk.FALSE, 5)
......@@ -292,7 +292,7 @@ def _interact(func_name):
button.set_active(gtk.TRUE)
self.active_value = value
def changed(self, radio, value):
if radio.active:
if radio.get_active():
self.active_value = value
def get_value(self):
return self.active_value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment