Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Storing wx.Radiobox Value

    5 answers - 627 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    In the UI of my application I have a radiobox with three choices. I want
    that choice to be stored in the embedded sqlite3 database, but I apparently
    cannot bind an event handler to that widget. Is this correct?
    Python objects to the following code:
    modType.Bind(wx.EVT_RADIBUTTN, Radio)
    where
    modType = rb.GetString(rb.GetSelection())
    According to the wPIA book, I can bind a handler to individual
    radiobuttons, but not to a box holding several.
    I can store the value 'modType' in the Save method, but want
    clarification that my understanding is correct.
    Rich
  • No.1 | | 830 bytes | |

    , darn it I signed up for the wrong thingy, I get every single message
    instead of a daily digests, how do I un-subscribe from this thing, and
    get a daily digest?

    Rich Shepard wrote:

    In the UI of my application I have a radiobox with three choices. I
    want
    that choice to be stored in the embedded sqlite3 database, but I
    apparently
    cannot bind an event handler to that widget. Is this correct?

    Python objects to the following code:

    modType.Bind(wx.EVT_RADIBUTTN, Radio)
    where
    modType = rb.GetString(rb.GetSelection())

    According to the wPIA book, I can bind a handler to individual
    radiobuttons, but not to a box holding several.

    I can store the value 'modType' in the Save method, but want
    clarification that my understanding is correct.

    Rich
  • No.2 | | 1570 bytes | |



    or the simpler way is to email

    @"SEND"!

    Josh Lee wrote:
    , darn it I signed up for the wrong thingy, I get every single message
    instead of a daily digests, how do I un-subscribe from this thing, and
    get a daily digest?

    Rich Shepard wrote:

    >In the UI of my application I have a radiobox with three choices. I
    >want
    >that choice to be stored in the embedded sqlite3 database, but I
    >apparently
    >cannot bind an event handler to that widget. Is this correct?
    >>

    >Python objects to the following code:
    >>

    >modType.Bind(wx.EVT_RADIBUTTN, Radio)
    >where
    >modType = rb.GetString(rb.GetSelection())
    >>

    >According to the wPIA book, I can bind a handler to individual
    >radiobuttons, but not to a box holding several.
    >>

    >I can store the value 'modType' in the Save method, but want
    >clarification that my understanding is correct.
    >>

    >Rich
    >>


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.3 | | 290 bytes | |

    Tue, 24 2006, Josh Lee wrote:
    , darn it I signed up for the wrong thingy, I get every single message
    instead of a daily digests, how do I un-subscribe from this thing, and get
    a daily digest?
    Take a look at the bottom of the messages you get from the list.
    Rich
  • No.4 | | 924 bytes | |

    Rich Shepard wrote:
    In the UI of my application I have a radiobox with three choices. I want
    that choice to be stored in the embedded sqlite3 database, but I apparently
    cannot bind an event handler to that widget. Is this correct?

    Python objects to the following code:

    modType.Bind(wx.EVT_RADIBUTTN, Radio)
    where
    modType = rb.GetString(rb.GetSelection())

    According to the wPIA book, I can bind a handler to individual
    radiobuttons, but not to a box holding several.

    I can store the value 'modType' in the Save method, but want
    clarification that my understanding is correct.

    modType is a string/unicode object, not a widget. You probably want
    something like this:

    rb.Bind(wx.EVT_RADIBX, Radio)

    and in Radio:

    def Radio(self, evt):
    rb = self.GetE()
    modType = rb.GetString(rb.GetSelection())
    # and then do something with modType
  • No.5 | | 570 bytes | |

    Tue, 24 2006, Robin Dunn wrote:

    modType is a string/unicode object, not a widget.

    Robin,

    I'm suitably chastised. course the handler is bound to a widget, not
    the value held in it.

    You probably want something like this:

    rb.Bind(wx.EVT_RADIBX, Radio)
    and in Radio:

    def Radio(self, evt):
    rb = self.GetE()
    modType = rb.GetString(rb.GetSelection())
    # and then do something with modType

    This is what I was going for, but I headed down a deadend path.

    Many thanks for the clarification,

    Rich

Re: Storing wx.Radiobox Value


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Python"

EMSDN.COM