Package parpg :: Package gui :: Module containergui_base :: Class ContainerGUIBase
[hide private]
[frames] | no frames]

Class ContainerGUIBase

source code

object --+
         |
        ContainerGUIBase

Base class for windows that show the content of a container

Instance Methods [hide private]
 
__init__(self, controller, gui_file)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
dragDrop(self, obj)
Decide whether to drag or drop the image.
source code
 
dragObject(self, obj)
Drag the selected object.
source code
 
dropObject(self, obj)
Drops the object being dropped
source code
 
createMenuItems(self, item, actions)
Creates context menu items for all classes based on ContainerGUI
source code
 
showContextMenu(self, event, widget)
Decide whether to drag or drop the image.
source code
 
executeMenuItem(self, action)
Executes the items action
source code
 
updateImages(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller, gui_file)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

dragDrop(self, obj)

source code 

Decide whether to drag or drop the image.

Parameters:
  • obj (string) - The name of the object within the dictionary 'self.buttons'
Returns:
None

dragObject(self, obj)

source code 

Drag the selected object.

Parameters:
  • obj (string) - The name of the object within the dictionary 'self.buttons'
Returns:
None

dropObject(self, obj)

source code 

Drops the object being dropped

Parameters:
  • obj (string) - The name of the object within the dictionary 'self.buttons'
Returns:
None

showContextMenu(self, event, widget)

source code 

Decide whether to drag or drop the image.

Parameters:
  • obj (string) - The name of the object within the dictionary 'self.buttons'
Returns:
None

executeMenuItem(self, action)

source code 

Executes the items action

Parameters:
  • action (Class derived from parpg.objects.action.Action) - The action to run