Package horizons :: Package gui :: Module windows :: Class Popup
[hide private]
[frames] | no frames]

Class Popup

source code

Window --+    
         |    
    Dialog --+
             |
            Popup

Displays a popup with the specified text

Instance Methods [hide private]
 
__init__(self, windows, windowtitle, message, show_cancel_button=False, size=0) source code
 
prepare(self)
Setup the dialog gui.
source code
    Inherited from Dialog
 
_abort(self, retval=False)
Break out of mainloop.
source code
 
_execute(self)
Execute the dialog synchronously.
source code
 
_on_keypress(self, event)
Intercept ESC and ENTER keys and execute the appropriate actions.
source code
 
act(self, retval)
Do something after dialog is closed.
source code
 
close(self)
Closes the window.
source code
 
hide(self)
Hide the window.
source code
 
on_escape(self)
Define what happens when ESC is pressed.
source code
 
show(self, **kwargs)
Show the window.
source code
 
trigger_close(self, event_name)
Close the dialog and execute the received event
source code
    Inherited from Window
 
_hide_modal_background(self) source code
 
_show_modal_background(self)
Loads transparent background that de facto prohibits access to other gui elements by eating all input events.
source code
 
on_return(self)
Define what happens when RETURN is pressed.
source code
 
open(self, **kwargs)
Open the window.
source code
Class Methods [hide private]
    Inherited from Dialog
 
create_from_widget(cls, dlg, bind, event_map=None, modal=False, focus=None)
Shows any pychan dialog.
source code
Class Variables [hide private]
  modal = True
    Inherited from Dialog
  focus = None
hash(x)
  return_events = {}
Method Details [hide private]

__init__(self, windows, windowtitle, message, show_cancel_button=False, size=0)
(Constructor)

source code 
Overrides: Window.__init__

prepare(self)

source code 

Setup the dialog gui.

The widget has to be stored in `self._gui`. If you want to abort the dialog here return False.

Overrides: Dialog.prepare
(inherited documentation)