Jump to content

PySide2 Issue with a Button Functionality in Qt Window


krishna

Recommended Posts

Hello everyone,

I’m new to Qt and facing an issue while writing in PySide2 for Houdini UI.. I’ve written a script in Houdini that creates a window with two buttons: Build and Close.

Clicking the Build button opens another window with the same two buttons (Build and Close).
The Build button works fine the first time, opening the new window. However, subsequent clicks on the Build button don’t seem to work at all.
Additionally, each click on the Build button is counted, and when the Close button is clicked, it prints the total number of clicks. This behavior happens regardless of whether you close the window from the main or subsequent windows.
Could someone please explain why the Build button stops functioning after the first click? I’d appreciate any help or guidance!
https://github.com/MaheshFXTD/shotbuilder

Please note that main.py is for houdini ui and windows_main.py is for running the code in windows python3.1 which works fine. But for some reason it's not working in houdini.
Thank you!

main.py windows_main.py

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...