Package gazpacho :: Module properties :: Class PropType
[frames | no frames]

Type PropType

object --+
         |
        PropType

Known Subclasses:
CustomProperty, StringType

Method Summary
  add_change_notify(self, function)
  get_default(self, gobj)
  get_object(self)
  get_object_name(self)
  get_project(self)
  is_translatable(self)
Is the property translatable? By default we're using a class variable, but in some cases we want to be able to check the instance state and check if we want translatation, eg GtkButton::label, in those cases, just override this method
  load(self)
  save(self)
Marshal the property into a string Return None if it already contains the default value

Property Summary
  object

Class Variable Summary
type __metaclass__ = gazpacho.properties.PropMeta
NoneType base_type = None                                                                  
NoneType child = None                                                                  
bool custom = False
type custom_editor = gazpacho.properties.PropertyCustomEditor
NoneType default = None                                                                  
bool editable = True
NoneType editor = None                                                                  
bool enabled = True
NoneType get = None                                                                  
bool has_custom_default = False
NoneType label = None                                                                  
NoneType name = None                                                                  
NoneType owner_name = None                                                                  
FakeModule owner_type = <Fake gobject.TYPE_INVALID>
bool persistent = True
int priority = 100                                                                   
NoneType readable = None                                                                  
NoneType set = None                                                                  
bool translatable = False
NoneType type = None                                                                  
NoneType value = None                                                                  
NoneType writable = None                                                                  

Method Details

is_translatable(self)

Is the property translatable? By default we're using a class variable, but in some cases we want to be able to check the instance state and check if we want translatation, eg GtkButton::label, in those cases, just override this method

save(self)

Marshal the property into a string Return None if it already contains the default value

Property Details

object

Get Method:
get_object(self)

Class Variable Details

base_type

Type:
NoneType
Value:
None                                                                  

child

Type:
NoneType
Value:
None                                                                  

custom

Type:
bool
Value:
False                                                                  

default

Type:
NoneType
Value:
None                                                                  

editable

Type:
bool
Value:
True                                                                   

editor

Type:
NoneType
Value:
None                                                                  

enabled

Type:
bool
Value:
True                                                                   

get

Type:
NoneType
Value:
None                                                                  

has_custom_default

Type:
bool
Value:
False                                                                  

label

Type:
NoneType
Value:
None                                                                  

name

Type:
NoneType
Value:
None                                                                  

owner_name

Type:
NoneType
Value:
None                                                                  

owner_type

Type:
FakeModule
Value:
<Fake gobject.TYPE_INVALID>                                            

persistent

Type:
bool
Value:
True                                                                   

priority

Type:
int
Value:
100                                                                   

readable

Type:
NoneType
Value:
None                                                                  

set

Type:
NoneType
Value:
None                                                                  

translatable

Type:
bool
Value:
False                                                                  

type

Type:
NoneType
Value:
None                                                                  

value

Type:
NoneType
Value:
None                                                                  

writable

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Mon Jan 29 16:42:58 2007 http://epydoc.sf.net