most efficient way of populating a combobox (in maya)

Discussion in 'Python' started by astan.chee Astan, May 4, 2012.

  1. Hi,
    I'm making a GUI in maya using python only and I'm trying to see which
    is more efficient. I'm trying to populate an optionMenuGrp / combo box
    whose contents come from os.listdir(folder). Now this is fine if the
    folder isn't that full but the folder has a few hundred items (almost
    in the thousands), it is also on the (work) network and people are
    constantly reading from it as well. Now I'm trying to write the GUI so
    that it makes the interface, and using threading - Thread, populate
    the box. Is this a good idea? Has anyone done this before and have
    experience with any limitations on it? Is the performance not
    significant?
    Thanks for any advice
     
    astan.chee Astan, May 4, 2012
    #1
    1. Advertising

  2. On Thu, 03 May 2012 19:07:51 -0700, astan.chee Astan wrote:

    > Hi,
    > I'm making a GUI in maya using python only and I'm trying to see which
    > is more efficient. I'm trying to populate an optionMenuGrp / combo box
    > whose contents come from os.listdir(folder). Now this is fine if the
    > folder isn't that full but the folder has a few hundred items (almost in
    > the thousands), it is also on the (work) network and people are
    > constantly reading from it as well. Now I'm trying to write the GUI so
    > that it makes the interface, and using threading - Thread, populate the
    > box. Is this a good idea? Has anyone done this before and have
    > experience with any limitations on it? Is the performance not
    > significant?
    > Thanks for any advice



    Why don't you try it and see?


    It's not like populating a combobox in Tkinter with the contents of
    os.listdir requires a large amount of effort. Just try it and see whether
    it performs well enough.



    --
    Steven
     
    Steven D'Aprano, May 4, 2012
    #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. Brent Minder
    Replies:
    3
    Views:
    405
    Brent
    Dec 28, 2003
  2. Peter
    Replies:
    1
    Views:
    375
    Steve C. Orr [MVP, MCSD]
    Nov 9, 2004
  3. Linus Nikander
    Replies:
    5
    Views:
    546
  4. Razvan
    Replies:
    11
    Views:
    537
    Dale King
    Oct 12, 2004
  5. Replies:
    5
    Views:
    483
    Roedy Green
    Oct 11, 2012
Loading...

Share This Page