Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8553

Assigning a button to be the default in MessageBox

$
0
0

@DanBayn wrote:

I’ve noticed recently that I haven’t been able to control which button is the default when using MessageBox in a Python script. According to the help file 256 assigns the second button as the default.

image

I’ve used this for years, but recently it doesn’t seem to be working for me. Here is an example:

import rhinoscriptsyntax as rs

rs.MessageBox("yada yada yada", 4 + 64 + 256, "Test")

The “No” button should be the default but it’s not.

Did something change that isn’t documented?

Thanks,

Dan

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 8553

Trending Articles