From 486fed9cc18a1b13eb4d6d0fc8be8762ea589ea1 Mon Sep 17 00:00:00 2001 From: amartin Date: Thu, 25 Jan 2007 14:41:42 +0000 Subject: less sketchy list (of list) duplication --- (limited to 'SynthLab') diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py index f86bb24..f8be382 100644 --- a/SynthLab/SynthLabWindow.py +++ b/SynthLab/SynthLabWindow.py @@ -259,7 +259,7 @@ class SynthLabWindow( gtk.Window ): def resetLocations( self ): # deep copy the list - exec "self.locations = " + "%s" % SynthLabConstants.INIT_LOCATIONS[:] + self.locations = [ loc[:] for loc in SynthLabConstants.INIT_LOCATIONS ] def handleReset( self, widget, data ): self.resetLocations() -- cgit v0.9.1