Python Forum

Full Version: JBrowseEntry
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I am converting all my PERL scripts to Python.
There is an entry widget in PERL Tk called JBrowseEntry which is an extension of the Entry widget. JBrowseEntry allows the user to enter a prefix and hit enter and it will take you to the closest matching entry in the pull-down.
Is there a corresponding widget in Python TkInter?
Thanks in advance.
Ken
That widget (Assuming you mean BrowseEntry, not JBrowseEntry may be a local modified version of BrowseEntry) is a composite of the following TK widgets (following is from PERL Tk docs):

Quote:ADVERTISED WIDGETS

The following widgets are advertised:

entry

The entry widget.
arrow

The button with the arrow image.
choices

The toplevel widget containing the choice listbox.
slistbox

The scrolled listbox with the choices.

I would look at how that is defined in PERL and do the same with tkinter, naming its class as 'BrowseEntry'.
Thank you for your response.
A quick google search of "JBrowseEntry" will give a description of the widget.
The closest Python widget is the "Combobox" widget. This unfortunately does not allow entering a prefix to limit the search. This could be annoying if there are several hundred items in the dropdown.