| 417 | current_feature = self |
| 418 | |
| 419 | class Control: |
| 420 | def __init__(self, dlg, name): |
| 421 | self.dlg = dlg |
| 422 | self.name = name |
| 423 | |
| 424 | def event(self, event, argument, condition = "1", ordering = None): |
| 425 | add_data(self.dlg.db, "ControlEvent", |
| 426 | [(self.dlg.name, self.name, event, argument, |
| 427 | condition, ordering)]) |
| 428 | |
| 429 | def mapping(self, event, attribute): |
| 430 | add_data(self.dlg.db, "EventMapping", |
| 431 | [(self.dlg.name, self.name, event, attribute)]) |
| 432 | |
| 433 | def condition(self, action, condition): |
| 434 | add_data(self.dlg.db, "ControlCondition", |
| 435 | [(self.dlg.name, self.name, action, condition)]) |
| 436 | |
| 437 | class RadioButtonGroup(Control): |
| 438 | def __init__(self, dlg, name, property): |