Before make my set_state question I hope you can give me some little
advice: 

I'm making a command recognizer
http://uxmcc3.iimas.unam.mx/~gvoice/gvoice/ (I recently updated the page
                                             any critics are wellcomed)
The name of the command recognizer is gvoice but I consider the name
"gvoice" missleading because there isn't really any
voice in my application. I could change the name to something like
"g_speech_control" or "g_speech_command" but I consider those names
borring...
So I want to change the name of "gvoice" to "gicepick". It's a " game of
words" (that's the way we call in spanish):
"gicepick" really stands-up for " Geeeeee I speak ". And I like the 
icepick metaphor because I implies you can "break the ice!!" with you
computer.
I put a "g" in front of the name because allmost all gnome aplication
start with a g wich stand's for GNU or GNOME , but I wouldn't have any
problem calling it "icepick".
What do you think of the name, is it to far fetch ????

Now my problem with set_state:
I can't set the state of a radio button...
Below is an example where I change the state of the 8 bits radiobutton to
1 but when you run this script it's the 16 bits radiobutton that appears
pusshed.
What I'm I doing wrong ???

#---------------------------------cut here-------------------------------

#!/usr/bin/env python
from gtk import *
class Debug_state(GtkWindow):

    def __init__(self):
        GtkWindow.__init__(self, WINDOW_TOPLEVEL)
        self.connect('destroy', mainquit)
        self.create_bit_num()

    def create_bit_num(self):
        bit_num_box = GtkHBox()
        self.add(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")
        bit_num_box.pack_start(self.bit_num_button16)
        self.bit_num_button8 = GtkRadioButton(self.bit_num_button16, "8 bits")
        bit_num_box.pack_start(self.bit_num_button8)
        self.bit_num_button8.set_state(TRUE) #HERE I CHANGE THE STATE (I THINK)
        self.bit_num_button8.show()
        self.bit_num_button16.show()

if __name__ == '__main__':
    debug_state = Debug_state()
    debug_state.show()
    mainloop()

#---------------------------------cut here-------------------------------

                        Thank's

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to