#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Canada
    Posts
    3
    Rep Power
    0

    how create listbox with checkbox ahead the items


    Hi Guys,

    I am going to create a listbox of lines of items. Each line will be
    preceded by a check box, which will toggle its visual state when
    clicked.

    I am a beginner of Tkinter and woule like to how to do it from you.
    thanks a lot in acvance!

    Zhiqun
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    2
    Rep Power
    0
    m_errorlist.InsertColumn(0, "Error code");
    m_errorlist.InsertColumn(1, "Decription");
    m_errorlist.InsertColumn(2, "Task");
    m_errorlist.SetColumnWidth(0, 100);
    m_errorlist.SetColumnWidth(1, 420);
    m_errorlist.SetColumnWidth(2, 0);

    ListView_SetExtendedListViewStyle
    (m_errorlist.m_hWnd, LVS_EX_CHECKBOXES | LVS_EX_FULLROWSELECT);
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Belgium
    Posts
    60
    Rep Power
    12

    Re: how create listbox with checkbox ahead the items


    Originally posted by zguo
    I am a beginner of Tkinter
    if you are a beginner I advise you to stop using Tkinter and give www.wxpython.org a try

IMN logo majestic logo threadwatch logo seochat tools logo