Ali Moradi
2015-06-15 10:38:02 UTC
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
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
Send Tutor mailing list submissions to
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
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tutor digest..."
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
Subject: Re: [Tutor] python 3.4 documentation
Content-Type: text/plain; charset=us-ascii
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
Subject: [Tutor] How to make clickable listbox from database by
Tkinter
<CAMh2k3YGkkfAcbRp0DtM3aX=-
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)
*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
Subject: Re: [Tutor] How to make clickable listbox from database by
Tkinter
Content-Type: text/plain; charset=windows-1252; format=flowed
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.
but there are differences depending on the exact database
you use. Is it SQL or a flat file database?
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
"water akvo"
And if the user enters the word 'patro' it will show
"father patro"
Is that what you mean?
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
http://www.flickr.com/photos/alangauldphotos
------------------------------
Subject: Digest Footer
_______________________________________________
https://mail.python.org/mailman/listinfo/tutor
------------------------------
End of Tutor Digest, Vol 136, Issue 27
**************************************
_______________________________________________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
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tutor digest..."
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
Subject: Re: [Tutor] python 3.4 documentation
Content-Type: text/plain; charset=us-ascii
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'off line'.
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
Subject: [Tutor] How to make clickable listbox from database by
Tkinter
<CAMh2k3YGkkfAcbRp0DtM3aX=-
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)
*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
Subject: Re: [Tutor] How to make clickable listbox from database by
Tkinter
Content-Type: text/plain; charset=windows-1252; format=flowed
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(English and Esperanto)
but there are differences depending on the exact database
you use. Is it SQL or a flat file database?
*English* *Esperanto*
water akvo
father patro
and so on...
That's probably just a string formatting task.water akvo
father patro
and so on...
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.and clicks on the button, it shows the word.
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
"water akvo"
And if the user enters the word 'patro' it will show
"father patro"
Is that what you mean?
files are attached.
This is a text based mailing list, your attachments havedisappeared 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
http://www.flickr.com/photos/alangauldphotos
------------------------------
Subject: Digest Footer
_______________________________________________
https://mail.python.org/mailman/listinfo/tutor
------------------------------
End of Tutor Digest, Vol 136, Issue 27
**************************************
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor