Popular recipes tagged "meta:loc=276"http://code.activestate.com/recipes/tags/meta:loc=276/2017-04-03T15:17:26-07:00ActiveState Code RecipesCombobox Autocomplete (Python) 2017-04-03T15:17:26-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580770-combobox-autocomplete/ <p style="color: grey"> Python recipe 580770 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/autocomplete/">autocomplete</a>, <a href="/recipes/tags/combobox/">combobox</a>, <a href="/recipes/tags/entry/">entry</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). Revision 11. </p> <p>This is my own version of combobox autocomplete. The user can customize the matching function setting whether he wants to ignore case or whether the matching function should only match from the beginning of the string. The other possibility is to provide your own "auto complete function". The complete function returns all the found strings matching the text in the entry box.</p> <p>It's also possible to customize the height of listbox and whether to use horizontal or vertical scrollbars.</p> <p>Use arrows or Contro+n, Control+p to move selection on listbox.</p> <p>This is a practical application of the combobox widget:</p> <p><a href="https://code.activestate.com/recipes/580771-tkinter-file-autocomplete-entry/" rel="nofollow">https://code.activestate.com/recipes/580771-tkinter-file-autocomplete-entry/</a></p> Classic ASP script analyzer, finds all functions, includes, duplicite functions (Python) 2008-09-18T02:39:29-07:00brano sobotkahttp://code.activestate.com/recipes/users/4167145/http://code.activestate.com/recipes/576510-classic-asp-script-analyzer-finds-all-functions-in/ <p style="color: grey"> Python recipe 576510 by <a href="/recipes/users/4167145/">brano sobotka</a> (<a href="/recipes/tags/analyze_asp/">analyze_asp</a>, <a href="/recipes/tags/tk_gui/">tk_gui</a>). </p> <p>Input root of your asp project to "File to analyze" it means some default.asp or index.asp. Select what do you what to find and click start analyze. Classic ASP don't care about duplicate function names, what creates unpredictable mistakes.</p> IMAP mail server attachment handler (Python) 2006-10-10T03:39:22-07:00Suresh Kumarhttp://code.activestate.com/recipes/users/4005268/http://code.activestate.com/recipes/498189-imap-mail-server-attachment-handler/ <p style="color: grey"> Python recipe 498189 by <a href="/recipes/users/4005268/">Suresh Kumar</a> (<a href="/recipes/tags/files/">files</a>). </p> <p>This python script monitors the IMAP mail server for the given account and moves the mails with attachments to "Downloadedmails" folder in server after downloading the attachments to the individual directories on localmachine with the timestamp.</p> An ActiveRecord like ORM (object relation mapper) under 200 lines (Python) 2006-07-26T16:49:55-07:00Wensheng Wanghttp://code.activestate.com/recipes/users/1513433/http://code.activestate.com/recipes/496905-an-activerecord-like-orm-object-relation-mapper-un/ <p style="color: grey"> Python recipe 496905 by <a href="/recipes/users/1513433/">Wensheng Wang</a> (<a href="/recipes/tags/database/">database</a>). Revision 2. </p> <p>There're quite a few python ORM's. However, most are not easy to use. In Ruby on Rails's ActiveRecord ORM, you don't have to define schema, just specify the relationship like "belongs_to" and "has_many", and ORM do rest of the work, it's very easy to learn and easy to use. This recipe provide a python ORM that behave like ActiveRecord.</p>