svgui/svguilib.py
changeset 1736 7e61baa047f0
parent 1730 64d8f52bc8c8
child 1851 1b8b5324506c
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    19 # GNU General Public License for more details.
    19 # GNU General Public License for more details.
    20 #
    20 #
    21 # You should have received a copy of the GNU General Public License
    21 # You should have received a copy of the GNU General Public License
    22 # along with this program; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
       
    24 
    24 
    25 
    25 class button:
    26 class button:
    26 
    27 
    27     def __init__(self, parent, id, args):
    28     def __init__(self, parent, id, args):
    28         self.parent = parent
    29         self.parent = parent
   113                     self.state = False
   114                     self.state = False
   114                     updateAttr(self.id, 'state', self.state)
   115                     updateAttr(self.id, 'state', self.state)
   115                     self.updateElements()
   116                     self.updateElements()
   116                 self.dragging = False
   117                 self.dragging = False
   117 
   118 
       
   119 
   118 class textControl:
   120 class textControl:
   119 
   121 
   120     def __init__(self, parent, id, args):
   122     def __init__(self, parent, id, args):
   121         self.parent = parent
   123         self.parent = parent
   122         self.id = id
   124         self.id = id