By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,593 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,593 IT Pros & Developers. It's quick & easy.

Does Tk provide ComboBox ?

P: n/a
Does Tkinter provide a combobox or do I have to find some way of making a
listbox do the job ?

Pete

Jul 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
> Does Tkinter provide a combobox or do I have to find some way of making
a listbox do the job ?


Hi!

In Tkinter this is called "OptionMenu".
If you don't like it, PMW (http://pmw.sourceforge.net/) has a
*real* Combobox :)

Regards, mawe

Jul 18 '05 #2

P: n/a
Hi Markus,

Pmw has a ComboBox but it's ugly IMO. Tix also has one -- but it's not
much different than the Pmw one. I created one and put it in a
Tkinter.py file. You can see mine here:
http://www.seritt.org/pub/tkinter/Tkinter-03132005.py -- I can honestly
say it's almost fully functional :-)

Seriously though, you can use the Listbox for almost anything you would
need a combobox for. In my mind, it's good for tight spaces (I'm sure
someone on this fine board will add something or disagree with me),
looks and little else.

Regards,

Harlin Seritt

Jul 18 '05 #3

P: n/a
Another Tk combobox is part of "bwidget". A Python wrapper can be found at
http://tkinter.unpythonic.net/bwidget/
http://unpythonic.net/cgi-bin/viewcvs.cgi/bwidget/
I think the appearance of the combobox is fairly close to the win9x look,
especially when used with my "options.py" package
http://unpythonic.net/cgi-bin/viewcv...viewcvs-markup

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCWTW8Jd01MZaTXX0RApERAJ4wRK8PBIUaj8pZiDc8He Qu7w565wCfew3V
5d4cYYt11pwZEbfsBmBlaXI=
=TgUT
-----END PGP SIGNATURE-----

Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.