hou.ui.display , ask me again please !!!!

   1263   1   1
User Avatar
Member
383 posts
Joined:
Offline
Hello,

I wrote this code :

sbtn = hou.ui.displayCustomConfirmation('Do you want it ', buttons=('Yes','No'), title='ActionZ')
if sbtn==0:
    print('aaa')
if sbtn==1:
    print('bbb')

The window came with title, buttons and a toggle labelled 'Don't ask me again'
Of course I switched on the toggle to test and now there is no popup anymore, even after a relaunch.

How Can I get my window back ?
Is it possible to eliminate this toggle ?

Thanks for your help !
Edited by vbk!!! - 2023年7月31日 10:44:47
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
スタッフ
1455 posts
Joined: 7月 2005
Offline
The `displayCustomConfirmation()` function has a `suppress` parameter, which is set to `hou.confirmType.OverwriteFile` by default.

So try toggling "Warn Before Owerwriting Files" in Edit > Preferences > Warning Dialogs.

To avoid the toggle, instead of `displayCustomConfirmation()`, try `displayMessage()` with the same arguments.
  • Quick Links