Package pyj2d :: Module display :: Class Display

Class Display

java.lang.Runnable --+
                     |
                    Display

pyj2d.display

Instance Methods
 
__init__(self)
Initialize Display module.
 
init(self)
Initialize display.
 
set_mode(self, size, *args, **kwargs)
Return a display Surface. Argument: size (x,y) of surface.
 
get_surface(self)
Return display Surface.
 
get_frame(self)
Return JFrame.
 
get_panel(self)
Return JPanel.
 
quit(self)
Uninitialize display.
 
get_init(self)
Check that display module is initialized.
 
get_active(self)
Check if display is visible.
 
set_caption(self, caption, *args)
Set display caption. Argument: caption for JFrame title.
 
set_icon(self, surface)
Set display icon. Argument: Surface for JFrame icon.
 
flip(self)
Repaint display.
 
update(self, rect_list=None)
Repaint display. Optional rect or rect list to specify regions to repaint.
 
run(self)
Method Details

__init__(self)
(Constructor)

 

Initialize Display module.

Module initialization creates pyj2d.display instance.