Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 94697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:32:32+00:00 2026-05-10T23:32:32+00:00

I develop tools in Autodesk Maya. Many of the tools I build have simple

  • 0

I develop tools in Autodesk Maya. Many of the tools I build have simple windowed GUIs for the animators and modellers to use. These GUIs often contain what you’d normally expect to see in any basic window; labels, lists, menus, buttons, textfields, etc. However, there are limitations to the complexity of the UIs you can build with the available tools, specifically in the types of available widgets.

I’m interested in using some of the more advanced wxPython widgets such as the ListView (grid), Tree, etc. This would involve using a complete wxFrame (window) to display the whole UI, which would essentially mean that window would no longer be tied to Maya. Not a deal breaker, but it means when Maya is minimized, the window won’t follow suit.

I’ve tried something like this before with tkinter as a test, but found that it needed a MainLoop to run in its own thread. This is logical, but in my case, it conflicts with Maya’s own thread, essentially making Maya hang until the window is closed. This is due to the fact that Maya runs all scripts, be they MEL or Python, in a single thread that the main Maya GUI shares. This is to prevent one script from, say, deleting an object while another script is trying to do work on the same object.

wxPython has this same ‘mainloop’ methodolgy. I’m wondering if there’s any way around it so that it can work within Maya?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:32:32+00:00Added an answer on May 10, 2026 at 11:32 pm

    I’m not sure if this is germane, but some googling turns up that PyQt is pretty popular inside of Maya. You could try the technique here or here (explained here with source code) of creating a new threadloop via Maya and executing inside of that. It seems Maya has a module included that sets up a new thread object, with a QApplication inside it:

    def initializePumpThread():     global pumpedThread     global app     if pumpedThread == None:         app = QtGui.QApplication(sys.argv)         pumpedThread = threading.Thread(target = pumpQt, args = ())         pumpedThread.start() 

    and then sets up a function to process the Qt events:

    def pumpQt():     global app     def processor():         app.processEvents()     while 1:         time.sleep(0.01)         utils.executeDeferred( processor ) 

    You can probably do something similar with wxPython as well. (utils.executeDeferred is a Maya function.) Be sure to check out how to create a non-blocking GUI on the wxPython wiki. Instead of processEvents(), you’ll want to set up an event loop and check for ‘Pending’ events inside the (hopefully renamed?) pumpQt function above. (The wxPython source has a Python implementation of MainLoop.) Likely this should be done through the app.Yield() function, but I’m not sure.

    def pumpWx():     global app     def processor():         app.Yield(True)     while 1:         time.sleep(0.01)         utils.executeDeferred( processor )  def initializePumpThread():     global pumpedThread     global app     if pumpedThread == None:         app = wx.App(False)         pumpedThread = threading.Thread(target = pumpWx, args = ())         pumpedThread.start() 

    The wxPython docs indicate SafeYield() is preferred. Again, this seems like it could be a first step, but I’m not sure it will work and not just crash horribly. (There’s some discussion about what you want to do on the wxPython mailing list but it’s from a few minor versions of wx ago.) There is also some indication in various forums that this technique causes problems with keyboard input. You might also try doing:

    def processor():   while app.Pending(): app.Dispatch() 

    to deal with the current list of events.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can't have an expression as the key in an… May 11, 2026 at 10:01 am
  • added an answer How about: IsNull(rs.Fields('MiddleInitial').Value) You could also have a look at… May 11, 2026 at 10:01 am
  • added an answer It's quite the same like with any other Java process… May 11, 2026 at 10:01 am

Related Questions

I develop tools in Autodesk Maya. Many of the tools I build have simple
I have to develop a tool in C# that retrieves some data from an
I develop exclusively on VMs. I currently run Boot Camp on a MacBook Pro
I develop an extension module for Guile, written in C. This extension module embeds
I develop and manage about 45 WindowsCE5 devices. Updating applications on the devices is
I develop a number of desktop Java applications using Swing, and while Swing is
I develop and maintain small intranet web apps written in JSP and Java. They
I develop applications for the PocketPC platform (.NET Compact Framework 2.0 and higher), and
I develop web applications and in my job so far, I have been waging
I develop a variety of applications and have 3-4 miscellaneous libraries that I reuse

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.