S
Stephen Kellett
Hi Folks.
I have a TkDialog that I just want to display and then get the answer
from it. I was wondering if it was possible to do this without deriving
from the class. Its a simple dialog box with a Yes/No question.
ret = TkDialog.new('title'=>'Confirm Exit',
'message'=>'Are you sure you want to exit?',
'buttons'=>['Yes', 'No'],
'default'=>1,
'bitmap'=>'question')
How do I get the answer? Did the user press Yes or No?
I've tried to find the answer to this by searching all the ruby examples
on my machine and using Google. I'm either looking for the wrong thing,
looking in the wrong place, whatever I can't work out how to do this.
Hoping someone can help me.
Stephen
I have a TkDialog that I just want to display and then get the answer
from it. I was wondering if it was possible to do this without deriving
from the class. Its a simple dialog box with a Yes/No question.
ret = TkDialog.new('title'=>'Confirm Exit',
'message'=>'Are you sure you want to exit?',
'buttons'=>['Yes', 'No'],
'default'=>1,
'bitmap'=>'question')
How do I get the answer? Did the user press Yes or No?
I've tried to find the answer to this by searching all the ruby examples
on my machine and using Google. I'm either looking for the wrong thing,
looking in the wrong place, whatever I can't work out how to do this.
Hoping someone can help me.
Stephen