Msg. Creating an 'embedded' widget is actually easy: the only thing you need to do is to set its parent as the window (or widget) when you create it. # this is defined under the function, def setupUi, per the video I've included my github repo at the bottom with complete files, however below is the code that has been added accordingly to the existing DDT.py file, in attempts of getting a pop up window working. Tldr: despite following the specific instructions outlined in the tutorial, when clicking on my gui's button tied to the pop-up functionality, nothing happens.Īs mentioned, when doing the exact same coding as found in the first 3 mins of the video, I'm unable to get a pop up window to generate when clicking on the appropriate button (pushButton_2). Refer Solution 2 by Sergey Alexandrovich Kryukov. popupWindow.close () To close the parent window. Use the following code to close the window. This approach is fine for windows that you create temporarily for example if you want to pop up a window to show a particular plot, or log output. If you click the button again, the same window will re-appear. I'm following this video as a reference guide: We can say that popupWindow is an object, which is a instance of window class initialized using open method. Using the button you can pop up the window, and use the window controls to close it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |