Well, I can't duplicate your problem with the following code:

from gtk import *

class Foo(GtkHBox):
  def __init__(self):
    GtkHBox.__init__(self)
    pass

  def set_active_8(self,*args):
    print args

  def create_bit_num(self):
    bit_num_box = GtkHButtonBox()
    self.pack_start(bit_num_box)
    bit_num_box.show()
    bit_label = GtkLabel()
    bit_label.set_text("Choose sample size:")
    bit_num_box.pack_start(bit_label)
    bit_label.show()
    self.bit_num_button16 = GtkRadioButton(None, "16 bits")
#   
self.bit_num_button16.connect("clicked",self.properties_box.changed)
    bit_num_box.pack_start(self.bit_num_button16)
    self.bit_num_button16.show()
    self.bit_num_button8 = GtkRadioButton(self.bit_num_button16, "8
bits")
#    self.bit_num_button8.connect("clicked",self.properties_box.changed)
    bit_num_box.pack_start(self.bit_num_button8)
    self.bit_num_button8.show()
    set_active_8_button = GtkButton ("set_active_8_button")
    set_active_8_button.connect("clicked", self.set_active_8)
    bit_num_box.pack_start(set_active_8_button)
    set_active_8_button.show()
    self.bit_num_button8.set_active(1) # HERE I GET THE CORE

if __name__ == '__main__':
    w=GtkWindow()
    f=Foo()
    w.add(f)
    f.create_bit_num()
    w.show_all()
    mainloop()

Note that when you set_active, it is probably triggering the callback to
properties_box.changed, and something there could be causing your core
dump.  What does properties_box.changed do?

-- 
Richard Fish                      Enhanced Software Technologies, Inc.
Software Developer                4014 E Broadway Rd Suite 405
[EMAIL PROTECTED]                    Phoenix, AZ  85040 
(602) 470-1115                    http://www.estinc.com
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to