Re: [Tutor] python 3.4 documentation

2015-06-15 Thread Ben Finney
Alex Kleider writes: > >>> import csv > >>> help('csv') > ...and documentation of the modules appears in the pager! Yes. This is positive reinforcement for writing meaningful, standardised docstrings for every code object (module, class, function): the docstring is automatically available for br

Re: [Tutor] python 3.4 documentation

2015-06-15 Thread Alex Kleider
On 2015-06-14 20:49, Steven D'Aprano wrote: The Python interactive interpreter comes with a powerful interactive help system. At the Python prompt, you can enter: help() help("keyword") # e.g. "raise" help(any_object) to get help and documentation. Thank you for this tip. I sort of was

Re: [Tutor] How to import a dictionary from another module?

2015-06-15 Thread David Aldrich
Hi I have a solution for this now. Best regards David > -Original Message- > From: Tutor [mailto:tutor-bounces+david.aldrich=eu.nec@python.org] > On Behalf Of David Aldrich > Sent: 15 June 2015 12:03 > To: tutor@python.org > Subject: [Tutor] How to import a dictionary from another m

Re: [Tutor] Clickable listbox in Tkinter python 2

2015-06-15 Thread Alan Gauld
On 15/06/15 14:41, Ali Moradi wrote: the listbox should be on the same frame under the entry widget and the whole list should be visible, when the user types the word in Entry widger and clicks on search button, the listbox narrows down to that word only and now just (for example: waterakvo)

Re: [Tutor] How to import a dictionary from another module?

2015-06-15 Thread Mark Lawrence
On 15/06/2015 12:03, David Aldrich wrote: Hi I have defined a dictionary in a module: mydir.py: REG_LOOKUP = { 'REG_1' : some_value1, 'REG_2' : some_value2, } How would I import that dictionary from my main() function (which lives in a different module) please? Best regards David

Re: [Tutor] Tutor Digest, Vol 136, Issue 27

2015-06-15 Thread Laura Creighton
This doesn't quite do what you want but should give you some ideas as to how to proceed. https://mail.python.org/pipermail/tkinter-discuss/2012-January/003041.html Laura ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription opti

[Tutor] Clickable listbox in Tkinter python 2

2015-06-15 Thread Ali Moradi
let me put it this way: the listbox should be on the same frame under the entry widget and the whole list should be visible, when the user types the word in Entry widger and clicks on search button, the listbox narrows down to that word only and now just (for example: waterakvo) are visible. d

[Tutor] How to import a dictionary from another module?

2015-06-15 Thread David Aldrich
Hi I have defined a dictionary in a module: mydir.py: REG_LOOKUP = { 'REG_1' : some_value1, 'REG_2' : some_value2, } How would I import that dictionary from my main() function (which lives in a different module) please? Best regards David

Re: [Tutor] Tutor Digest, Vol 136, Issue 27

2015-06-15 Thread Ali Moradi
let me put it this way: the listbox should be on the same frame under the entry widget and the whole list should be visible, when the user types the word in Entry widger and clicks on search button, the listbox narrows down to that word only and now just (for example: waterakvo) are visible. do

Re: [Tutor] python 3.4 documentation

2015-06-15 Thread Laura Creighton
In a message of Sun, 14 Jun 2015 19:59:00 -0700, Alex Kleider writes: >On 2015-06-14 17:13, Laura Creighton wrote: >> In a message of Sun, 14 Jun 2015 15:50:38 -0700, Alex Kleider writes: >>> On 2015-06-14 12:36, Hilton Fernandes wrote: Hello, Alex ! I believe that maybe in the page

Re: [Tutor] How to make clickable listbox from database by Tkinter

2015-06-15 Thread Alan Gauld
On 15/06/15 08:11, Ali Moradi wrote: how can i add a listbox under the entry and button widgets? Can you clarify that sentence? What do you mean by "under"? Do you want the list box to be located on the same form as two widgets but underneath? Or do you want the listbox to appear when you pres

[Tutor] How to make clickable listbox from database by Tkinter

2015-06-15 Thread Ali Moradi
hi, i use python 2. how can i add a listbox under the entry and button widgets? i want to use database to fill the listbox, both fields in the database (English and Esperanto) listbox should be like this (words are beside eachother: *English* *Esperanto* waterakvo fatherpatr