I think there may be a problem with READONLY and buttons. When its been set to TRUE and then back to FALSE (for any widget type), for some reason CLICKED doesn't detect a button press...
Works for me:
DDgui_pushdialog(10,10,220,220)
DDgui_checkbox("ch1", "readonly?")
DDgui_button("bt1", "Button")
DDgui_automate("ch1", "SELECT", "bt1", "READONLY")
WHILE TRUE
DDgui_show(TRUE)
IF DDgui_get("bt1", "CLICKED") THEN DDgui_msg("Bing!", FALSE)
SHOWSCREEN
WEND
It is odd - the only thing I can think of is that some of buttons are being set at the wrong time.
Although all test indicate the button is not set as READONLY...
I think I found why - the code that deals with IF DDgui_get(self.LIST_STRINGS$,"CLICKED")
is continually being run...