0

Is there any way to mimic the dynamic suggestions behavior as per the search field on Google? As in, I type something in a text ctrl, and a list of suggestions pops up below for the user to chose from? If wxPython doesn't have such a feature, perhaps some other Python gui has it?

EDIT: For use on a Mac. That excludes this example, although it seems to be exactly what I am looking for.

c00kiemonster
  • 22,241
  • 34
  • 95
  • 133

2 Answers2

1

Im not sure it theres a way to automatically do this but I think it could be easily achieved by binding to EVT_TEXT.

This is a recipe from the wxpython wiki for a TextCtrlAutoComplete control

volting
  • 16,773
  • 7
  • 36
  • 54
  • Yea I found that wiki entry too. The problem is that I'm intending to use it on a Mac, which doesn't support the popupWindow. I better edit the question. – c00kiemonster Aug 05 '10 at 00:11
  • Ok sorry I couldnt help more, if I think of something Ill post back. – volting Aug 05 '10 at 00:17
1

Have you tried AutocompleteTextCtrl?

You could quickly download and test it as it comes with a nice test module to run straight away.

Iacks
  • 3,757
  • 2
  • 21
  • 24
  • 1
    will take a look at it, but I'd assume it's based on wx.PopupWindow that isn't supported on mac... – c00kiemonster Dec 16 '10 at 03:17
  • I don't think it is based on wx.PopupWindow at all. Instead it uses a HtmlListBox inside a wx.Frame which is just shows and hides. – Iacks Dec 16 '10 at 09:34