[Tutor] Tutor Digest, Vol 136, Issue 27

Ali Moradi adeadmarshal at gmail.com
Mon Jun 15 12:38:02 CEST 2015


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: water    akvo) are visible. do you know what i mean?
i'm not native english speaker so maybe i can't explain it :(

the code and my database is in the file uploaded (the database is sqlite3
[i made it in ubuntu linux with SQLiteBrowser program]):

http://qfs.mobi/f2361208

https://drive.google.com/file/d/0Bwe9iYyAhRzgT3hudnAxUkVzTTA/view?usp=sharing

On Mon, Jun 15, 2015 at 2:30 PM, <tutor-request at python.org> wrote:

> Send Tutor mailing list submissions to
>         tutor at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/tutor
> or, via email, send a message with subject or body 'help' to
>         tutor-request at python.org
>
> You can reach the person managing the list at
>         tutor-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tutor digest..."
>
>
> Today's Topics:
>
>    1. Re: python 3.4 documentation (Steven D'Aprano)
>    2. How to make clickable listbox from database by Tkinter
>       (Ali Moradi)
>    3. Re: How to make clickable listbox from database by Tkinter
>       (Alan Gauld)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Jun 2015 13:49:44 +1000
> From: Steven D'Aprano <steve at pearwood.info>
> To: tutor at python.org
> Subject: Re: [Tutor] python 3.4 documentation
> Message-ID: <20150615034944.GC20701 at ando.pearwood.info>
> Content-Type: text/plain; charset=us-ascii
>
> On Sun, Jun 14, 2015 at 11:56:15AM -0700, Alex Kleider wrote:
> > I'm using python 3.4 on an ubuntu 14.4 LTS OS and frequently find myself
> > 'off line'.
>
> 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.
>
>
> --
> Steve
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Jun 2015 11:41:37 +0430
> From: Ali Moradi <adeadmarshal at gmail.com>
> To: tutor at python.org
> Subject: [Tutor] How to make clickable listbox from database by
>         Tkinter
> Message-ID:
>         <CAMh2k3YGkkfAcbRp0DtM3aX=-
> GtEMz+dsL2fghNWfcpX3V83LA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> 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*
> water        akvo
> father        patro
>
> and so on...
>
> it's a dictionary app.
>
> i want to make the items in the list searchable, and when the user types
> and clicks on the button, it shows the word.
>
> files are attached.
>
> thanks a bunch, i'm a beginner in python! :)
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 15 Jun 2015 09:03:09 +0100
> From: Alan Gauld <alan.gauld at btinternet.com>
> To: tutor at python.org
> Subject: Re: [Tutor] How to make clickable listbox from database by
>         Tkinter
> Message-ID: <mlm0rq$2pv$1 at ger.gmane.org>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> 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 press the button?
>
> If its the first then it will be down to using the
> correct layout manager (pack, grid, place etc) in
> conjunction with one or more Frame containers.
>
> If its the second the jn you will need to say where
> the listbox should appear: in a dialog or on the
> existing form.
>
> > i want to use database to fill the listbox, both fields in the database
> > (English and Esperanto)
>
> What kind of database? You can attach Python to most databases
> but there are differences depending on the exact database
> you use. Is it SQL or a flat file database?
>
> > listbox should be like this (words are beside each other:
> >
> > *English*     *Esperanto*
> > water        akvo
> > father        patro
> >
> > and so on...
>
> That's probably just a string formatting task.
>
> > i want to make the items in the list searchable, and when the user types
> > and clicks on the button, it shows the word.
>
> You must be more specific. We can't read your mind.
> If the user clicks on the button it should show which word?
>
> I assume you mean if the user enters a word in the entry
> widget and then presses the button then the list box should
> arrange its contents such that the user word and its pair
> are both visible? And maybe highlighted too?
>
> I'm guessing that the word entered can be in either English
> or Esperanto? So if the user enters 'water' it will show
> and highlight the line:
> "water   akvo"
> And if the user enters the word 'patro' it will show
> and highlight the line:
> "father   patro"
>
> Is that what you mean?
>
> > files are attached.
>
> This is a text based mailing list, your attachments have
> disappeared in transit (at least for me). Please send the files
> as text embedded in your mail. (Please be sure to use plain
> text email for this as HTML will mess up the formatting).
> If the files are long, say >100 lines put them on a pastebin
> type site and send a link.
>
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> https://mail.python.org/mailman/listinfo/tutor
>
>
> ------------------------------
>
> End of Tutor Digest, Vol 136, Issue 27
> **************************************
>


More information about the Tutor mailing list