473,383 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Does Tk provide ComboBox ?

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
3 3620
> 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Marcel Brekelmans | last post by:
Hi, This is my situation: My ISP doesn't allow me the execute server-code. So, no ASP or otherwise.As a small compensation, they run some CGI scripts that we can use. With one of these...
10
by: Judy | last post by:
How do I create a combobox in a custom menubar to display months like: 1 January 2 February 3 March etc and then assign the month number (1, 2, 3, etc) of the selected month to a...
17
by: Hazz | last post by:
In this sample code of ownerdraw drawmode, why does the '(ComboBox) sender' line of code need to be there in this event handler? Isn't cboFont passed via the managed heap, not the stack, into this...
4
by: Tom | last post by:
I have a ComboBox that I wrote a KeyPress event for. Basically, it looks to make sure that a numeric key has been pressed; if not, then it does a Beep() and sets e.Handled to True. This should, as...
4
by: John | last post by:
I am working on a project, the SSL is a requirement, so given the SSL is the mandate, does it make any sense to apply any WSE 3.0 (Security) on top of SSL? Thanks in advance. John
4
by: senfo | last post by:
Hello All, For some reason, the MouseDoubleClick event for my ComboBox does not appear to be working. I am not subscribed to any other events for this control. I pulled out Spy++ and noticed...
1
by: abattista | last post by:
Hi, My combobox has 684 items, (controlled from a separate table). However, the item I select does not populate in the combobox field? If fills with an item in the first dozen or so. Is it...
4
by: DaBrain | last post by:
I have written an application in C#, when I created a setup project and tried to install it on another test machine it said: "This setup requires the Microsoft Visual J# .NET Redistributable...
1
by: Peter Duniho | last post by:
On Fri, 11 Apr 2008 01:43:52 -0700, Weeble <clockworksaint@gmail.com> wrote: That's not a difference. The code example you compared to has the implication that A will use the IB instance...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.