wxPython, wxcombobox opening

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rony Steelandt

    #1

    wxPython, wxcombobox opening

    Hi,

    Does somebody knows a way to automaticely open the list part of a
    wxCombobox when it gets the focus ?

    tia,

    Rony


  • Philippe Martin

    #2
    Re: wxPython, wxcombobox opening

    Hi,

    I do not have the answer but am very interested in the issue. I tried this:

    l_ev = wx.MouseEvent(w x.wxEVT_LEFT_DO WN)
    l_ev.SetEventOb ject(self.GetCo mbo())
    self.GetEventHa ndler().Process Event(l_ev)

    Which did send the event to the combo (which is in a pannel in my case) ..
    but that is apparently not the event that triggers the dropping of the
    list.

    I posed elsewhere and will forward here any hint.

    Philippe



    Rony Steelandt wrote:
    [color=blue]
    > Hi,
    >
    > Does somebody knows a way to automaticely open the list part of a
    > wxCombobox when it gets the focus ?
    >
    > tia,
    >
    > Rony[/color]

    Comment

    • Philippe Martin

      #3
      Re: wxPython, wxcombobox opening

      Hi,

      From the wxPython list:
      [color=blue]
      > Hi,
      >
      > Which event must I catch to be called when the user clicks on the combo
      > "button" to make the drop down list to appear ?[/color]

      No, there isn't a specific event for the opening of the drop-down box.


      Regards,

      Philippe





      Philippe Martin wrote:
      [color=blue]
      > Hi,
      >
      > I do not have the answer but am very interested in the issue. I tried
      > this:
      >
      > l_ev = wx.MouseEvent(w x.wxEVT_LEFT_DO WN)
      > l_ev.SetEventOb ject(self.GetCo mbo())
      > self.GetEventHa ndler().Process Event(l_ev)
      >
      > Which did send the event to the combo (which is in a pannel in my case) ..
      > but that is apparently not the event that triggers the dropping of the
      > list.
      >
      > I posed elsewhere and will forward here any hint.
      >
      > Philippe
      >
      >
      >
      > Rony Steelandt wrote:
      >[color=green]
      >> Hi,
      >>
      >> Does somebody knows a way to automaticely open the list part of a
      >> wxCombobox when it gets the focus ?
      >>
      >> tia,
      >>
      >> Rony[/color][/color]

      Comment

      • Rony Steelandt

        #4
        Re: wxPython, wxcombobox opening

        That is what I was afraid for....

        Thanks for answering,

        Rony


        [color=blue]
        > Hi,
        >
        > From the wxPython list:
        >[color=green]
        >> Hi,
        >>
        >> Which event must I catch to be called when the user clicks on the combo
        >> "button" to make the drop down list to appear ?[/color]
        >
        > No, there isn't a specific event for the opening of the drop-down box.
        >
        >
        > Regards,
        >
        > Philippe
        >
        >
        >
        >
        >
        > Philippe Martin wrote:
        >[color=green]
        >> Hi,
        >>
        >> I do not have the answer but am very interested in the issue. I tried
        >> this:
        >>
        >> l_ev = wx.MouseEvent(w x.wxEVT_LEFT_DO WN)
        >> l_ev.SetEventOb ject(self.GetCo mbo())
        >> self.GetEventHa ndler().Process Event(l_ev)
        >>
        >> Which did send the event to the combo (which is in a pannel in my case) ..
        >> but that is apparently not the event that triggers the dropping of the
        >> list.
        >>
        >> I posed elsewhere and will forward here any hint.
        >>
        >> Philippe
        >>
        >>
        >>
        >> Rony Steelandt wrote:
        >>[color=darkred]
        >>> Hi,
        >>>
        >>> Does somebody knows a way to automaticely open the list part of a
        >>> wxCombobox when it gets the focus ?
        >>>
        >>> tia,
        >>>
        >>> Rony[/color][/color][/color]


        Comment

        Working...