Does Tk provide ComboBox ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Moscatt

    #1

    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

  • Markus Weihs

    #2
    Re: Does Tk provide ComboBox ?

    > Does Tkinter provide a combobox or do I have to find some way of making[color=blue]
    > a listbox do the job ?[/color]

    Hi!

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

    Regards, mawe

    Comment

    • Harlin Seritt

      #3
      Re: Does Tk provide ComboBox ?

      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

      Comment

      • jepler@unpythonic.net

        #4
        Re: Does Tk provide ComboBox ?

        Another Tk combobox is part of "bwidget". A Python wrapper can be found at


        I think the appearance of the combobox is fairly close to the win9x look,
        especially when used with my "options.py " package


        Jeff

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

        iD8DBQFCWTW8Jd0 1MZaTXX0RApERAJ 4wRK8PBIUaj8pZi Dc8HeQu7w565wCf ew3V
        5d4cYYt11pwZEbf sBmBlaXI=
        =TgUT
        -----END PGP SIGNATURE-----

        Comment

        Working...