Tix Combobox

Discussion in 'Python' started by peter, Jun 8, 2011.

  1. peter

    peter Guest

    I'm writing some fairly simple code using a Tkinter GUI, and found I
    wanted a Combo box. As Tkinter does not provide one, I turned to
    Tix, and struggled. Extensive googling failed to turn up any python
    specific documentation, and there was no obvious way to translate the
    Tcl documentation.

    Nothing worked, and usually fell over with the error message
    _tkinter.TclError: unknown color name "{#c3c3c3}". Googling this
    error message seemed to suggest that this was a known bug, and that
    there was no readily available fix for those of us who like
    applications to work out of the box.

    Is this correct? If so is there any other Tkinter based solution, or
    do I need to learn a new GUI?

    I'm using Python 2.6.1 under WindowsXP

    Peter
     
    peter, Jun 8, 2011
    #1
    1. Advertising

  2. peter

    Kevin Walzer Guest

    On 6/8/11 8:00 AM, peter wrote:
    > I'm writing some fairly simple code using a Tkinter GUI, and found I
    > wanted a Combo box. As Tkinter does not provide one, I turned to
    > Tix, and struggled. Extensive googling failed to turn up any python
    > specific documentation, and there was no obvious way to translate the
    > Tcl documentation.
    >
    > Nothing worked, and usually fell over with the error message
    > _tkinter.TclError: unknown color name "{#c3c3c3}". Googling this
    > error message seemed to suggest that this was a known bug, and that
    > there was no readily available fix for those of us who like
    > applications to work out of the box.
    >
    > Is this correct? If so is there any other Tkinter based solution, or
    > do I need to learn a new GUI?
    >
    > I'm using Python 2.6.1 under WindowsXP
    >
    > Peter

    If you switch to Python 2.7 you can use the themed ttk widgets, which
    includes a native combobox--not the ugly one that comes with Tix.

    --
    Kevin Walzer
    Code by Kevin
    http://www.codebykevin.com
     
    Kevin Walzer, Jun 8, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Helmut Jarausch
    Replies:
    0
    Views:
    449
    Helmut Jarausch
    Jul 17, 2003
  2. Josh

    Tix + Python + Windows?

    Josh, Aug 13, 2003, in forum: Python
    Replies:
    2
    Views:
    715
    Kevin Mote
    Sep 5, 2003
  3. Hank

    installing Tix

    Hank, Aug 19, 2003, in forum: Python
    Replies:
    1
    Views:
    391
    Christos TZOTZIOY Georgiou
    Aug 23, 2003
  4. Sanjay Minni
    Replies:
    0
    Views:
    353
    Sanjay Minni
    Sep 1, 2003
  5. Replies:
    5
    Views:
    491
    Roedy Green
    Oct 11, 2012
Loading...

Share This Page