File indexing completed on 2025-02-09 04:28:27

0001 #! /usr/bin/env python
0002 # -*- coding: utf-8 -*-
0003 
0004 {% include licence|append:".py" %}
0005 {% if baseClass %}
0006 
0007 from PyQt4{{ baseClass.module }} import {{ baseClass.type }}
0008 {% endif %}
0009 
0010 class {{ className }}({% if baseClass %}{{ baseClass.type }}{% else %}object{% endif %}):
0011 
0012     def __init__(self):
0013 {% if baseClass %}
0014         {{ baseClass.type }}.__init__(self)
0015 {% endif %}
0016         pass
0017 
0018 {% for property in properties %}
0019     def {{ property.name }}(self):
0020         return self._{{ property.name }}
0021   {% if not property.readonly %}
0022 
0023     def {{ property.name|to_write }}(self, {{ property.name }}):
0024         self._{{ property.name }} = {{ property.name }}
0025   {% endif %}
0026 
0027 {% endfor %}
0028 {% with "true" as default %}
0029   {% for method in methods %}
0030     def {{ method.name }}(self{% include "args.py" %}):
0031         pass
0032 
0033   {% endfor %}
0034 {% endwith %}