Beispiel #1
0
 def add_button(self, name, label, fun):
     self._generate_elements_trigger = True
     data = {
         'name' : name,
         'label' : forceUnicode(label),
         'type' : 'button',
         'visible' : True,
         'fun' : fun,
     }
     self._elements_to_generate[name] = data
     self._elements_to_generate_list.append(data)
Beispiel #2
0
 def add_list(self, name, label, list_elements):
     self._generate_elements_trigger = True
     data = {
         'name' : name,
         'label' : forceUnicode(label),
         'type' : 'list',
         'visible' : True,
         'list_elements' : list_elements,
     }
     self._elements_to_generate[name] = data
     self._elements_to_generate_list.append(data)
Beispiel #3
0
 def add_textline(self, name, label, input_mask=None):
     self._generate_elements_trigger = True
     data = {
         'name' : name,
         'label' : forceUnicode(label),
         'type' : 'textline',
         'visible' : True,
         'input_mask' :input_mask,
     }
     self._elements_to_generate[name] = data
     self._elements_to_generate_list.append(data)
Beispiel #4
0
 def __init__(self, name, data):
     self._name = forceUnicode(name)
     self._data = data
     self._parent = None
     self._type = None