I am trying to develop a gui using wxpython that has 3-4 notebook panels and one of these panels (master panel) calls another python script called abc.py. In this abc.py i am running several(>10) threads simultaneously. When I hit run button on master panel it starts these simultaneous threads of abc.py script. The problem I am facing here is my wxpython notebook gets hang up for time between: "when I hit run button and upto all the threads are joined". For this period I am not able to control other buttons on my panel nor am i able to switch between panels. My window gets freezed up for this period of time. What could be the problem? If anyone could guide me to proper path to avoid this issue then i will really be very grateful. Thank you..!!!
wxpython notebook panel hangs when threads are running
89 Views Asked by Bhoomika Sheth At
1
There are 1 best solutions below
Related Questions in WXPYTHON
- wx only execute on mouseover, not during GUI initialization
- FindString() method for wx ListBox not working for me
- How do I create a wx.Bitmap with a transparent background?
- Unable to identify which events a wx widget emits
- Wxpython Sizer position
- wxpython alpha colors overwrite previous drawing
- wx.YieldIfNeeded slows down when called in long running search in wxStyledTextCtrl doc which is scrolled down
- How to create trustworthy desktop applications that do not conflict with antivirus software
- How to prevent UI freeze in wxpython when running long task with concurrent future
- Drag and Drop Attachments from Outlook to Windows Filesystem
- Is it possible to create a function to increment or decrease a variable by one, without looping or recursion(wxpython)
- WX Bitmap from buffer, confusing invalid buffer size error
- How do I implement single click editing on cell in a table in wxPython?
- How do I get arrows in a wxPython Ultimate List Control to scroll correctly?
- Plotting two graphs in real time with wx and matplotlib
Related Questions in PYTHON-MULTITHREADING
- Python Background Thread Timer
- In ThreadPoolExecutor, socket.bind() is blocking without "Address already in use"
- How can I interrupt or send signals to python Threads without cooperation from the thread?
- Can a data race occur when multiple threads access the same Numpy array?
- Python3 get response from Queue and multiple threads
- Why is there a large ploting delay/lag in my real-time serial port ploting app after more than 10000 datapoints reading?
- Python——Is there any solution for thread priority in threading.Thread?
- Why does the python client socket receiving a reply but still throw the exception in some threadings?
- Re-play slow motion doesn't play anything
- I have encountered a wall while using customtkinter and threading together
- Is there a way to pause and restart a thread or kill a thread and start it again?
- How to switch between Text widget contents with multiple buttons?
- cannot pickle '_mysql_connector.MySQL' object
- How can I make a tkinter inaccessible while it is minimized after iconify is run?
- Error after ending code that use tkinter with thread
Related Questions in WXNOTEBOOK
- wxPython scrolledwindow in a notebook does not scroll
- How to Center Tabs of wxNotebook in wxWidgets
- wxNotebook - inner wxPanel - call method when page is changed
- How can I make a sizer expand to the whole wxNotebook page?
- How to generate new pages on wxPython notebook with close buttons?
- Automate Tabbing though tabs in WXnotebook
- wxPython - Tooltips for notebook tabs
- wxPython : Notebook seems not to work with multibinding
- Changing attributes in other panels
- Self delete page in wx.Notebook
- wxPython Toolbook/Toolbar, blank space between toolbar and frame
- wxhaskell notebook with imageTag segfaults
- wxPython: Setting Value into Sheet in thread
- Transparent Notebook Page/Setting Background Image for Notebook Pages in wxPython
- sizers and controls next to notebooks
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You will also need to wrap the call to
abc.py(withpopen, I suppose) into a thread, otherwise the GUI will block. When the process in the external script is collecting its answer, you have to get it back in a thread-safe way (important!) towxPython.A better way would be to import from
abc.py, if that is possible and spin the imported objects in the long running thread.For an explanation how to communicate back thread-safe see the wxPython wiki. I personally find the last example the easiest to understand and implement.