Package libxyz :: Package ui :: Module box_yesno :: Class YesNoBox
[hide private]
[frames] | no frames]

Class YesNoBox

source code

Box --+
      |
     YesNoBox

Yes/No box. Shows a message and waits for Yes or No button pressed

Instance Methods [hide private]
 
__init__(self, xyz, body, message, title="", width=60) source code
 
show(self, dim=None)
Show box and return pressed button.
source code
 
_init_buttons(self) source code
 
_change_focus(self, keys)
Move focus
source code
 
_pressed(self, button)
Button pressed
source code
Class Variables [hide private]
  resolution = u"yesno_box", u"box", u"widget"
Method Details [hide private]

__init__(self, xyz, body, message, title="", width=60)
(Constructor)

source code 
Parameters:
  • xyz - XYZ dictionary
  • body - Top-level widget
  • message - Message to display
  • title - Box title
  • width - Box width (including mount box)

    Required resources: title, box, border, mount, button

show(self, dim=None)

source code 

Show box and return pressed button. True if YES pressed, False if NO